* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #95B3D1;
    color: #000;
    line-height: 1.5;
    padding: 24px 12px 48px;
}

.page {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    overflow: hidden;
}

/* Hero photo — full card width; a bit taller so more of the photo shows */
.hero {
    width: 100%;
    height: 220px;
    margin: 0;
    padding: 0;
    line-height: 0;
    overflow: hidden;
    background: #d9e4ec;
    border-radius: 12px 12px 0 0;
}

.hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 32%;
}

.content {
    padding: 28px 40px 40px;
}

.title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #000;
}

.title .zh {
    display: block;
    margin-bottom: 4px;
}

.title .en {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.section-heading {
    font-size: 20px;
    font-weight: 700;
    margin: 8px 0 22px;
    color: #1E3A6E;
}

.section-heading .zh {
    display: block;
    margin-bottom: 4px;
}

.section-heading .en {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.event-meta {
    color: #1E3A6E;
    font-size: 16px;
    margin-bottom: 20px;
}

.event-meta .date {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.event-meta .sessions li {
    list-style: none;
    margin-bottom: 2px;
}

.instructions {
    margin: 22px 0 28px;
    font-size: 15px;
    color: #000;
}

.instructions .en {
    display: block;
    margin-top: 2px;
}

.success-alert {
    margin: 28px 0 8px;
    padding: 16px 18px 16px 16px;
    background: #eef3f8;
    border: 1px solid #c5d4e4;
    border-left: 4px solid #3A5A9A;
    border-radius: 4px;
}

.success-alert-list {
    margin: 0;
    padding-left: 22px;
    color: #000;
    font-size: 15px;
    line-height: 1.5;
}

.success-alert-list li {
    margin-bottom: 14px;
}

.success-alert-list li:last-child {
    margin-bottom: 0;
}

.success-alert-list .en {
    display: block;
    margin-top: 4px;
    color: #555;
    font-size: 14px;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #777;
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    border: none;
    border-bottom: 1px solid #999;
    background: transparent;
    padding: 6px 2px 8px;
    font-size: 16px;
    font-family: inherit;
    color: #000;
    outline: none;
    border-radius: 0;
}

.form-group select {
    cursor: pointer;
}

.form-group select:disabled {
    color: #999;
    cursor: not-allowed;
}

.form-group input:focus,
.form-group select:focus {
    border-bottom-color: #3A5A9A;
}

.form-group input:disabled {
    color: #999;
    cursor: not-allowed;
}

.school-search-results {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #cfd8e3;
    border-top: none;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
}

.school-search-results li {
    margin: 0;
    padding: 0;
}

.school-search-results button {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 10px 8px;
    font-size: 15px;
    font-family: inherit;
    color: #000;
    cursor: pointer;
    border-bottom: 1px solid #eef2f6;
}

.school-search-results button:hover,
.school-search-results button:focus {
    background: #eef3f8;
    outline: none;
}

.actions {
    margin-top: 36px;
    text-align: center;
}

.actions-split {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
}

.actions-split .btn-submit,
.actions-split .btn-secondary {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
}

.btn-submit,
.btn-secondary {
    display: inline-block;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
}

.btn-submit {
    background: #3A5A9A;
    color: #fff;
}

.btn-submit:hover {
    background: #2f4a82;
}

.btn-submit:disabled,
.btn-secondary:disabled,
form.is-submitting .btn-submit,
form.is-submitting .btn-secondary {
    opacity: 0.65;
    cursor: wait;
    pointer-events: none;
}

.btn-secondary {
    background: #e8eef5;
    color: #3A5A9A;
}

.btn-secondary:hover {
    background: #d7e1ee;
}

.review-list {
    margin: 8px 0 0;
}

.review-row {
    display: grid;
    grid-template-columns: minmax(140px, 240px) 1fr;
    gap: 8px 20px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.review-row dt {
    color: #777;
    font-size: 14px;
}

.review-row dd {
    margin: 0;
    color: #000;
    font-size: 16px;
    word-break: break-word;
}

.form-error {
    margin: 16px 0 8px;
    color: #b00020;
    font-size: 15px;
}

.form-success {
    margin: 16px 0 8px;
    color: #1f6b33;
    font-size: 15px;
}

#lookup-form,
#lookup-verify-form {
    margin-top: 36px;
}

#lookup-form input[type="tel"] {
    padding-left: 8px;
}

.inquiry-masked-name {
    font-size: 20px;
    letter-spacing: 0.06em;
    color: #3A5A9A;
}

.lookup-link {
    margin-top: 28px;
    text-align: center;
    font-size: 14px;
    color: #555;
}

.lookup-link a {
    color: #3A5A9A;
}

.page-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 8px 0 24px;
    border: 1px solid #c5d3e6;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f6fa;
}

.page-tab {
    border: none;
    background: transparent;
    padding: 14px 12px;
    cursor: pointer;
    font-family: inherit;
    color: #4a5b73;
    text-align: center;
    line-height: 1.3;
}

.page-tab .zh {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.page-tab .en {
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

.page-tab + .page-tab {
    border-left: 1px solid #c5d3e6;
}

.page-tab.is-active {
    background: #3A5A9A;
    color: #fff;
}

.page-tab:focus {
    outline: 2px solid #2f4a82;
    outline-offset: -2px;
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
}

@media (max-width: 600px) {
    body {
        padding: 0 0 32px;
    }

    .page {
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
    }

    .hero {
        height: 160px;
        border-radius: 0;
    }

    .content {
        padding: 20px 20px 32px;
    }

    .title {
        font-size: 18px;
    }

    .title .en {
        font-size: 15px;
    }

    .review-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .actions-split {
        gap: 8px;
    }

    .actions-split .btn-submit,
    .actions-split .btn-secondary {
        padding: 12px 10px;
        font-size: 14px;
    }
}

@media print {
    body {
        background: #fff;
        padding: 0;
    }

    .page {
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
    }

    .hero {
        height: 140px;
        border-radius: 0;
    }

    .no-print {
        display: none !important;
    }
}
