@font-face {
    font-family: "Sarabun";
    src: url("Sarabun-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Sarabun";
    src: url("Sarabun-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: light;
    font-family: "Sarabun", system-ui, sans-serif;
    color: #17312a;
    background: #f7faf7;
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: #f7faf7 url("background.jpg") center / cover fixed no-repeat;
}

.page-shell {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.search-card {
    width: min(100%, 680px);
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid rgba(13, 105, 82, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(12, 69, 55, 0.18);
    backdrop-filter: blur(8px);
}

.eyebrow {
    margin: 0 0 4px;
    color: #d64632;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    color: #0d6952;
    font-size: clamp(2rem, 6vw, 3.2rem);
    line-height: 1.4;
}

.intro,
.help,
.notice {
    font-size: 1.1rem;
    line-height: 1.6;
}

form {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

label {
    margin-top: 8px;
    font-weight: 700;
}

input,
select,
button {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    font: inherit;
}

input,
select {
    border: 1px solid #9bb8af;
    padding: 10px 14px;
    color: #17312a;
    background: #fff;
}

input:focus,
select:focus {
    outline: 3px solid rgba(244, 114, 41, 0.24);
    border-color: #f47229;
}

button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    border: 0;
    padding: 12px 22px;
    color: #fff;
    background: linear-gradient(135deg, #0d8062, #09513f);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(13, 105, 82, 0.22);
}

button:hover,
.button-link:hover {
    background: linear-gradient(135deg, #0f9070, #0b604b);
}

a {
    color: #0d6952;
    font-weight: 700;
}

.help {
    margin: 24px 0 0;
    color: #526b64;
}

.message-card {
    text-align: center;
}

.results-card { width: min(100%, 960px); }
.home-card { width: min(100%, 880px); }
.event-details { margin: 24px 0; padding: 22px; border-left: 4px solid #0d8062; border-radius: 0 16px 16px 0; background: #edf6f1; line-height: 1.8; }
.event-details h2 { margin: 0 0 10px; color: #0d6952; font-size: 1.3rem; line-height: 1.6; }
.event-details p { margin: 10px 0 0; }
.event-theme { font-weight: 700; }
.search-hint, .group-summary { line-height: 1.8; }
.site-footer { padding: 20px 16px; text-align: center; color: #345448; background: rgba(255, 255, 255, 0.96); font-size: 0.95rem; line-height: 1.6; }
.results { display: grid; gap: 20px; margin-top: 24px; }
.result-card { padding: 22px; border: 1px solid #c2d7cf; border-radius: 16px; background: #fff; overflow-wrap: anywhere; }
.result-card h2 { margin: 0; line-height: 1.5; color: #0d6952; }
.result-card p { line-height: 1.65; margin: 8px 0; }
.result-card form { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 8px; }
.verified { padding: 16px; background: #e8f7ed; color: #13552e; border-radius: 12px; }

.notice {
    margin: 26px 0;
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff3e8;
    color: #7a3b15;
}

@media (max-width: 560px) {
    body {
        background-position: 30% center;
    }

    .page-shell {
        align-items: start;
        padding-top: 18px;
    }

    .search-card {
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }
}
