/* ===== REGISTRATION PAGE STYLES ===== */

/* Registration Hero */
.reg-hero {
    background: var(--navy);
    padding: 50px 20px 40px;
    text-align: center;
}

.reg-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.reg-hero h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.reg-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

/* Form Section Container */
.reg-form-section {
    padding: 40px 20px 60px;
    background: var(--off-white);
}

.reg-form-container {
    max-width: 780px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 40px 44px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border: 1px solid #e8edf2;
}

/* Form Section Blocks */
.form-section {
    margin-bottom: 36px;
    padding-bottom: 10px;
}

.form-section:last-of-type {
    margin-bottom: 20px;
}

.form-section-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 6px;
}

.section-num {
    color: var(--green);
}

.form-subsection-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 6px;
}

.form-divider {
    height: 2px;
    background: linear-gradient(to right, var(--green), transparent);
    margin-bottom: 22px;
    border-radius: 2px;
}

/* Form Rows & Groups */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group.full {
    flex: 1;
}

.form-group.half {
    flex: 1;
}

.form-group label {
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-body);
}

.optional-tag {
    color: var(--gray);
    font-weight: 400;
    font-size: 12px;
}

/* Input Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    padding: 10px 14px;
    border: 1.5px solid #d0d8e0;
    border-radius: 10px;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(117,183,76,0.12);
}

textarea {
    resize: vertical;
    min-height: 70px;
}

/* Signature Input */
.signature-input {
    font-family: 'Brush Script MT', 'Segoe Script', 'Comic Sans MS', cursive !important;
    font-size: 18px !important;
    color: var(--navy) !important;
    border-bottom: 2px solid var(--navy) !important;
    border-radius: 0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    padding-left: 4px !important;
    background: transparent !important;
}

.signature-input:focus {
    border-bottom-color: var(--green) !important;
    box-shadow: none !important;
}

/* Radio & Checkbox Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.camp-weeks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-body);
    padding: 8px 12px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.radio-label:hover,
.checkbox-label:hover {
    background: rgba(117,183,76,0.06);
}

.radio-label.inline {
    display: inline-flex;
    padding: 4px 8px;
}

/* Hide default inputs */
.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    display: none;
}

/* Custom radio */
.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #c0c8d0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

.radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    transform: scale(0);
    transition: transform 0.2s ease;
}

input[type="radio"]:checked + .radio-custom {
    border-color: var(--green);
}

input[type="radio"]:checked + .radio-custom::after {
    transform: scale(1);
}

/* Custom checkbox */
.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #c0c8d0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    color: var(--white);
    opacity: 0;
    transition: opacity 0.2s ease;
}

input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--green);
    border-color: var(--green);
}

input[type="checkbox"]:checked + .checkbox-custom::after {
    opacity: 1;
}

.radio-text,
.checkbox-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
}

/* Inline radio row */
.inline-radio-row {
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.field-label {
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    margin-right: 6px;
    white-space: nowrap;
}

/* Conditional fields */
.conditional-field {
    display: none;
}

/* Info boxes */
.info-box {
    background: #f5f8fb;
    border-left: 3px solid var(--green);
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin: 16px 0;
}

.info-box ul {
    list-style: disc;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-box li {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.5;
}

.info-heading {
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 16px 0 4px;
}

.consent-label {
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 20px 0 10px;
}

/* Policy box */
.policy-box {
    background: #f5f8fb;
    border-left: 3px solid var(--navy);
    border-radius: 0 10px 10px 0;
    padding: 18px 22px;
}

.policy-box p {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 8px;
}

.policy-box p:last-child {
    margin-bottom: 0;
}

.policy-box a {
    color: var(--green);
    font-weight: 600;
    text-decoration: underline;
}

.policy-warning {
    color: #c0392b !important;
}

/* Submit Section */
.form-submit-section {
    text-align: center;
    padding-top: 10px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--green);
    color: var(--white);
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px rgba(117,183,76,0.35);
}

.btn-submit:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(117,183,76,0.45);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-submit i {
    font-size: 14px;
}

.submit-note {
    font-size: 12px;
    color: var(--gray);
    margin-top: 12px;
    line-height: 1.5;
}

/* Success / Error Messages */
.form-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 30px;
    gap: 12px;
}

.form-message i {
    font-size: 52px;
}

.form-message h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.form-message p {
    font-size: 14px;
    color: var(--text-body);
    max-width: 400px;
    line-height: 1.6;
}

.success-message i {
    color: var(--green);
}

.success-message h3 {
    color: var(--green-dark);
}

.error-message i {
    color: #e74c3c;
}

.error-message h3 {
    color: #c0392b;
}

.error-message a {
    color: var(--green);
    font-weight: 600;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    color: var(--white);
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    background: var(--green);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    .reg-form-container {
        padding: 28px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 14px;
    }

    .form-row.inline-radio-row {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .camp-weeks {
        grid-template-columns: repeat(2, 1fr);
    }

    .reg-hero h1 {
        font-size: 22px;
    }

    .form-section-title {
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .camp-weeks {
        grid-template-columns: 1fr;
    }
}
