html {
    font-size: 14px;
    /* 设置rem基准为12px */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    font-size: 1.2rem;
    /* 对应14.4px */
}

/* Section 通用样式 - 全宽背景，内容宽度1200px */
section {
    width: 100%;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Banner Section */
.banner-section {
    background-image: url('../img/banner_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
}

.banner-content {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0;
    width: 100%;
    padding: 4rem 0;
}

.col-4 {
    grid-column: span 4;
}

.col-8 {
    grid-column: span 8;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.banner-title {
    font-size: 3rem;
    color: #FFC162;
    font-weight: bold;
    margin: 0;
}

.banner-subtitle {
    font-size: 2rem;
    color: #ffffff;
    font-weight: normal;
    margin: 0;
    line-height: 1.3em;
}

.banner-divider {
    width: 40%;
    height: 1px;
    background-color: #D4E7FF;
    margin: 1rem 0 0.5rem;
}

.banner-text-1 {
    font-size: 1.4rem;
    color: #B2E2FF;
    margin: 0;
}

.banner-text-2 {
    font-size: 1.5rem;
    color: #A0D7FF;
    margin: 0;
    border: 1px solid #A1D7FF;
    padding: 0.2rem 1rem 0.4rem;
    display: inline-block;
    width: fit-content;
}

/* Why Join Section */
.why-join-section {
    background-color: #EFF5FF;
    background-image: url('../img/20260118223720_8213_59.jpg');
    background-position: top right;
    background-repeat: no-repeat;
    background-size: 35%;
    width: 100%;
    padding: 4rem 0;
    position: relative;
}

.why-join-title {
    font-size: 2.3rem;
    color: #243E92;
    text-align: center;
    margin: 0 0 3rem 0;
    font-weight: 800;
}

.why-join-content {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.col-3 {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
}

.why-join-image {
    width: 100%;
    height: 200px;
    display: block;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.why-join-item-title {
    font-size: 1.1rem;
    color: #111111;
    font-weight: bold;
    margin: 0 0 1rem 0;
    text-align: center;
}

.why-join-item-text {
    font-size: 1.1rem;
    color: #111111;
    font-weight: normal;
    margin: 0;
    line-height: 1.6;
    text-align: center;
}

/* Who Should Join Section */
.who-join-section {
    width: 100%;
    padding: 4rem 0;
    background-color: #fff;
}

.who-join-content {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: center;
}

.who-join-content .col-6 {
    grid-column: span 6;
}

.who-join-content .col-6:last-child {
    padding-left: 2rem;
}

.who-join-image {
    width: 100%;
    height: auto;
    display: block;
}

.who-join-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #243E92;
    text-align: left;
    margin: 0 0 2rem 0;
}

.who-join-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.who-join-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: #111111;
    font-weight: bold;
}

.check-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* How to Join Section */
.how-to-join-section {
    background-color: #EFF5FF;
    width: 100%;
    padding: 4rem 0;
}

.how-to-join-title {
    font-weight: 800;
    font-size: 2.3rem;
    color: #1D4B9D;
    text-align: center;
    margin: 0 0 2rem 0;
}

.apply-now-btn {
    display: block;
    margin: 0 auto 3rem;
    padding: 0.8rem 3rem;
    background: linear-gradient(to right, #DF8B37, #E7A72D);
    color: #fff;
    font-size: 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    min-width: 300px;
    width: auto;
}

/* 移除按钮链接的下划线 */
a:has(.apply-now-btn) {
    text-decoration: none;
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.how-to-join-cards {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
}

.how-to-card {
    flex: 1;
    max-width: 32%;
    min-width: 280px;
}

.arrow-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
}

.arrow-svg {
    width: 40px;
    height: 35px;
}

.how-to-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-bottom: 8px solid #EFA93D;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-step-icon {
    position: absolute;
    left: 0;
    top: -20px;
    z-index: 10;
    height: auto;
    transform: scale(0.5);
    transform-origin: left top;
}

.card-image {
    width: calc(100% + 3rem);
    height: auto;
    min-height: 240px;
    object-fit: cover;
    display: block;
    margin: -2rem -1.5rem 0 -1.5rem;
}

.card-title {
    font-size: 1.35rem;
    color: #1D4B9D;
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
    min-height: 2.8em;
    /* Ensure always 2 lines height */
    /* Optional: center text vertically if it's only one line */
}

.card-title-bracket {
    color: #E59D2B;
}

.card-list-1 {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-list-1 li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.list-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-orange {
    background-color: #EFA93D;
}

.dot-blue {
    background-color: #1D4B9D;
}

.list-item-blue {
    background-color: #3B6ECC;
    color: #fff;
    font-size: 1.05rem;
    padding: 0rem 0.8rem;
    border-radius: 8px;
}

.card-goal {
    font-size: 1.1rem;
    color: #1D4B9D;
    margin: 0;
    padding: 0.5rem 0.5rem;
    border: 1px dashed #1D4B9D;
}

.card-focus {
    background-color: #EFA93D;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 1.4rem;
    padding: 0rem 0.5rem;
    border-radius: 12px;
    margin: 0;
    width: fit-content;
}

.card-list-2 {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-list-2 li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #1D4B9D;
    font-size: 1.1rem;
}

.card-list-2 li .dot-blue {
    margin-top: 0.55rem;
}

/* Payment Information Section */
.payment-section {
    width: 100%;
    padding: 4rem 0;
    background-color: #fff;
}

.payment-title {
    font-size: 2.3rem;
    color: #1D4B9D;
    text-align: center;
    margin: 0 0 3rem 0;
}

.payment-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.payment-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2.5rem;
    border-radius: 12px;
    min-height: 400px;
}

.payment-card-left {
    background-image: url('../img/card1.png');
}

.payment-card-right {
    background-image: url('../img/card2.png');
}

.payment-card-title {
    font-size: 1.35rem;
    color: #FFFFFF;
    font-weight: bold;
    margin: 0 0 2rem 0;
    line-height: 1.4;
}

.payment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: #FFFFFF;
    line-height: 1.5;
}

.payment-dot {
    width: 0.8rem;
    height: 0.8rem;
    background-color: #FFFFFF;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.4rem;
}

.payment-list li strong {
    font-weight: bold;
}

/* Footer Section */
.footer-section {
    background-color: #1D4B9E;
    width: 100%;
    padding: 2rem 0;
}

.footer-text {
    font-size: 1.25rem;
    color: #FFFFFF;
    text-align: center;
    margin: 0;
    line-height: 1.6;
}

/* Form Section */
.form-section {
    background-image: url('../img/form_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    padding: 4rem 0;
    min-height: 100vh;
}

.form-content {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
    align-items: flex-start;
}

.form-content .col-6 {
    grid-column: span 6;
}

.form-title {
    font-size: 3rem;
    font-weight: 900;
    color: #253F91;
    margin: 25% 0 0;
    line-height: 1.8;
}

.form-title-divider {
    width: 30%;
    height: 3px;
    background-color: #253F91;
    margin-top: 3rem;
}

.form-left-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: 8rem;
    display: block;
}

.form-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-box {
    background-color: #fff;
    padding: 0.5rem 1.3rem 1.3rem;
}

.form-box-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.form-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.form-box-title {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
    font-weight: bold;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Form spacing overrides - remove gaps between inputs */
.form-section form {
    gap: 0.4rem;
}

.form-section .form-row {
    gap: 0.4rem;
}

.form-section .form-group {
    gap: 0;
    margin-bottom: 0;
}

.form-group-half {
    display: flex;
    flex-direction: column;
}

.student-input,
.parent-input {
    padding: 0.3rem 1rem;
    border: 2px solid;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.student-input {
    border-color: #EFA93D;
}

.student-input:focus {
    outline: none;
    border-color: #EFA93D;
    box-shadow: 0 0 0 3px rgba(239, 169, 61, 0.1);
}

.parent-input {
    border-color: #5A88E3;
}

/* 方案3：黑科技换行 */
.long-select-wrapper {
    position: relative;
    min-height: 80px;
    /* 撑开高度给两行文字 */
}

.long-select-wrapper::before {
    content: "Do you agree with your child to participate in the MUN and school visits?";
    position: absolute;
    top: 10px;
    left: 12px;
    right: 35px;
    /* 给下拉箭头留位子 */
    font-size: 1rem;
    color: #999;
    line-height: 1.4;
    pointer-events: none;
    /* 关键：点击文字能穿透到下面的select */
    z-index: 1;
}

.long-select-wrapper select {
    height: 100%;
    min-height: 65px;
    padding-top: 40px;
    /* 把 Yes/No 顶下去，避免重叠 */
    position: relative;
    z-index: 0;
}

/* 选了值之后隐藏伪元素，并让文字回到正常位置 */
.long-select-wrapper:has(select:valid)::before {
    display: none;
}

.long-select-wrapper:has(select:valid) select {
    padding-top: 5px;
    min-height: 40px;
}

.parent-input:focus {
    outline: none;
    border-color: #5A88E3;
    box-shadow: 0 0 0 3px rgba(90, 136, 227, 0.1);
}

.student-input::placeholder,
.parent-input::placeholder {
    color: #999;
}

/* Make select placeholder option look like placeholder */
.student-input option[value=""],
.parent-input option[value=""] {
    color: #999;
}

/* When a valid option is selected, show it in normal color */
.student-input:valid,
.parent-input:valid {
    color: #333;
}

/* Keep placeholder state gray */
.student-input:invalid,
.parent-input:invalid {
    color: #999;
}

/* Ensure dropdown options are black */
.student-input option:not([value=""]),
.parent-input option:not([value=""]) {
    color: #333;
}

/* Phone number validation feedback */
input[type="tel"]:invalid:not(:placeholder-shown).student-input {
    border-color: #ff4444;
}

input[type="tel"]:invalid:not(:placeholder-shown).parent-input {
    border-color: #ff4444;
}

input[type="tel"]:valid.student-input {
    border-color: #4CAF50;
}

input[type="tel"]:valid.parent-input {
    border-color: #4CAF50;
}

/* Show validation message on focus */
input[type="tel"]:invalid:focus {
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

.radio-group {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.student-radio {
    accent-color: #EFA93D;
}

.parent-radio {
    accent-color: #5A88E3;
}

.radio-question {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.form-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.submit-btn {
    padding: 1rem 3rem;
    background: linear-gradient(to right, #DF8B37, #E7A72D);
    color: #fff;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(223, 139, 55, 0.3);
}

/* 表单容器 */
.form-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-container h1 {
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
}

/* 表单样式 */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.3rem 1rem;
    border: 1px solid #ddd;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

button {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"] {
    background-color: #007bff;
    color: #fff;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

button[type="reset"] {
    background-color: #6c757d;
    color: #fff;
}

button[type="reset"]:hover {
    background-color: #5a6268;
}

/* Form overrides to ensure correct border colors */
.form-section .student-input,
.form-section .student-input:focus {
    border: 2px solid #EFA93D;
}

.form-section .parent-input,
.form-section .parent-input:focus {
    border: 2px solid #5A88E3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .section-container {
        padding: 0 1rem;
    }

    .banner-content {
        grid-template-columns: 1fr;
    }

    .col-4,
    .col-8 {
        grid-column: span 1;
    }

    .banner-title {
        font-size: 2rem;
    }

    .banner-subtitle {
        font-size: 1.5rem;
    }

    .banner-text-1,
    .banner-text-2 {
        font-size: 1.2rem;
    }

    .why-join-title {
        font-size: 1.8rem;
    }

    .why-join-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .col-3 {
        grid-column: span 1;
    }

    .who-join-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .who-join-content .col-6 {
        grid-column: span 1;
    }

    .who-join-title {
        font-size: 1.8rem;
    }

    .how-to-join-title {
        font-size: 1.8rem;
    }

    .how-to-join-cards {
        flex-direction: column;
        gap: 2rem;
    }

    .how-to-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .arrow-container {
        transform: rotate(90deg);
    }

    .arrow-svg {
        width: 60px;
        height: 120px;
    }

    .apply-now-btn {
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }

    .payment-title {
        font-size: 1.8rem;
    }

    .payment-cards {
        grid-template-columns: 1fr;
    }

    .payment-card {
        min-height: 300px;
        padding: 2rem;
    }

    .footer-text {
        font-size: 1.1rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .form-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-content .col-6 {
        grid-column: span 1;
    }

    .form-title {
        font-size: 2rem;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-box {
        padding: 1.5rem;
    }
}

/* Custom Notification System */
.custom-notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    max-width: 500px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transition: top 0.3s ease-out;
    font-size: 1rem;
    font-weight: 500;
}

.custom-notification.show {
    top: 20px;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-icon {
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    line-height: 1.4;
}

/* Success notification */
.custom-notification.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.custom-notification.success .notification-icon {
    color: #fff;
}

/* Error notification */
.custom-notification.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.custom-notification.error .notification-icon {
    color: #fff;
}

/* Info notification */
.custom-notification.info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.custom-notification.info .notification-icon {
    color: #fff;
}.mt-offset-desktop { margin-top: -1.5rem; } @media (max-width: 768px) { .mt-offset-desktop { margin-top: 0; } }
