/* Registration page styles */
.registration {
    min-height: 100vh;
    background-color: #f8f8f8;
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: #ffffff;
    background-image: url("/index/assets/mascot_bg.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-attachment: fixed;
}

.banner {
    width: 100vw;
    height: 160px;
    overflow: hidden;
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    min-width: 100%;
}

.form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px 56px;
    width: 100%;
    box-sizing: border-box;
}

.form-header {
    margin: 28px 0 20px;
}

.form-title {
    font-size: 30px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.form-title::after {
    content: "";
    display: block;
    margin-top: 8px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #F18F01 0%, rgba(241, 143, 1, 0) 100%);
    border-radius: 2px;
}

.form-partners {
    margin-top: 14px;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
    padding: 0;
    border: 0;
    background: transparent;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.form-partners-logos {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    margin-left: auto;
}

.form-partner-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.form-partner-logo--combine {
    height: 44px;
}

.form-partner-logo--seros {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    padding: 5px 10px;
    border-radius: 8px;
}

.form-partners-divider {
    width: 1px;
    height: 24px;
    background: #d9d9d9;
    flex-shrink: 0;
}

.form-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 48px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    background-image: url("/index/assets/mascot_bg.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 520px;
    background-blend-mode: multiply;
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 12px 0 20px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.section-title:first-of-type {
    margin-top: 0;
}

.section-title.emphasis-title {
    font-size: 20px;
}

.section-divider {
    height: 1px;
    background: #e8e8e8;
    margin: -8px 0 16px;
}

.input-row {
    display: flex;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

/* Date of Birth - grid for predictable column sizing across devices */
.input-row-dob {
    display: grid;
    grid-template-columns: minmax(130px, 1.4fr) minmax(60px, 0.6fr) minmax(80px, 0.9fr);
    gap: 12px;
    align-items: stretch;
}

.input-row.two-inputs input,
.input-row.two-inputs select {
    flex: 1;
    min-width: 0;
}

.input-row.three-inputs input,
.input-row.three-inputs select {
    flex: 1;
    min-width: 0;
}

.input-row.three-inputs input:first-child,
.input-row.three-inputs select:first-child {
    flex: 0 0 132px;
}

.input-row.three-inputs input:nth-child(2),
.input-row.three-inputs select:nth-child(2) {
    flex: 0 0 110px;
}

.input-row.three-inputs input:last-child,
.input-row.three-inputs select:last-child {
    flex: 1 1 140px;
    min-width: 0;
}

/* Player Name - equal columns, same styling for First, Middle, Last */
.input-row-name {
    display: grid;
    grid-template-columns: minmax(80px, 1fr) minmax(80px, 1fr) minmax(80px, 1fr);
    gap: 12px;
    align-items: stretch;
}

.input-row-name input,
.input-row-name select {
    width: 100%;
    min-width: 0;
    font-size: 15px;
    padding: 0 14px;
}

.input-row-dob input,
.input-row-dob select {
    width: 100%;
    min-width: 0;
    padding-right: 32px;
}

.input-row-dob select {
    font-size: 15px;
}

.radio-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.radio-row .checkbox {
    align-items: center;
}

.radio-row .checkbox input {
    margin-top: 0;
}

.radio-row-wrap {
    flex-wrap: wrap;
    gap: 12px;
}

.radio-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

.radio-stack .checkbox {
    align-items: center;
}

.radio-stack .checkbox input {
    margin-top: 0;
}

.upload-box-id {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.upload-box-id .upload-status {
    margin-top: 10px;
}

.upload-box-id input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.upload-box-id {
    position: relative;
}

.upload-icon {
    color: #9ca3af;
    margin-bottom: 8px;
}

.upload-icon svg {
    width: 40px;
    height: 40px;
}

.upload-text-bold {
    font-weight: 700;
    font-size: 15px;
}

.upload-text-muted {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.section-note {
    margin: 0 0 16px;
    color: #222;
    font-size: 15px;
    font-weight: 500;
}

.section-note strong {
    font-weight: 700;
}

.eligibility-text {
    font-weight: 400;
}

.field-grid {
    display: grid;
    gap: 18px 28px;
    margin-bottom: 28px;
}

.field-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-span-two {
    grid-column: 1 / -1;
}

.field-grid.one-col {
    grid-template-columns: minmax(0, 1fr);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #222;
}

.field > span {
    font-size: 16px;
    font-weight: 400;
}

.field > span::after {
    content: " *";
    color: #d64545;
    font-weight: 600;
}

.field > span.optional::after {
    content: "";
}

.field-helper {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}

.eligibility .field > span {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.player-assessment .field > span {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.eligibility .consent-list {
    gap: 8px;
    margin-bottom: 0;
}

.eligibility .checkbox {
    font-size: 14px;
    align-items: center;
}

.eligibility .checkbox input {
    margin-top: 0;
}

.highest-level {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.highest-level .checkbox {
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #f7f7f7;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.highest-level .checkbox input {
    margin-top: 0;
}

.highest-level .checkbox span {
    font-weight: 600;
}

.highest-level .checkbox:focus-within {
    border-color: #2d4cc8;
    background: #f0f4ff;
}

.elite-camp {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    margin-bottom: 8px;
}

.elite-camp .checkbox {
    align-items: center;
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select,
.field textarea {
    padding: 0 14px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fafafa;
    font-size: 15px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: #2d4cc8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(45, 76, 200, 0.12);
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select {
    height: 42px;
}

.field textarea {
    min-height: 110px;
    padding: 14px;
    resize: vertical;
}

.field input.field-error:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select.field-error,
.field textarea.field-error,
.field input.field-error:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.field select.field-error:focus,
.field textarea.field-error:focus {
    border-color: #d64545;
    background: #fff5f5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.12);
}

.checkbox.field-error {
    color: #b02a2a;
    border: 1px solid #d64545;
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff5f5;
}

.checkbox.field-error input {
    outline: none;
}

.upload-box {
    border: 2px dashed #cfcfcf;
    border-radius: 12px;
    padding: 20px;
    display: grid;
    gap: 6px;
    text-align: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 400;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
}

.upload-box.field-error {
    border-color: #d64545;
    background: #fff5f5;
}

.upload-box.field-error span,
.upload-box.field-error small {
    color: #b02a2a;
}

.upload-status {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f6f7f9;
    color: #5a5a5a;
    font-size: 14px;
    text-align: left;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.upload-status-title {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.upload-status.has-files {
    background: #eef7f1;
    color: #1f6f3f;
    border: 1px solid #b9e0c6;
}

.upload-status.has-files .upload-status-title {
    color: #1f6f3f;
}

.upload-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
    max-width: 100%;
    min-width: 0;
}

.upload-file-list li {
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.upload-file-list li::before {
    content: "✓";
    color: #1f6f3f;
    margin-right: 8px;
}

.upload-box input[type="file"] {
    margin: 0 auto;
}

.upload-box small {
    font-size: 14px;
    font-weight: 400;
    color: #444;
}

.upload-box span {
    font-weight: 400;
}

/* Registration type selection (basketball) - vertical list */
.registration-type-section {
    margin-bottom: 28px;
}

.registration-type-label {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 12px;
}

.registration-type-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.registration-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 20px 16px;
    border-radius: 16px;
    border: 2px solid #e5e5e5;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.registration-type-item:hover {
    border-color: #d0d0d0;
    background: #f5f5f5;
}

.registration-type-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.registration-type-item input:checked ~ .registration-type-radio {
    border-color: #1a8f3a;
    background: #1a8f3a;
    box-shadow: inset 0 0 0 3px #fff;
}

.registration-type-item input:focus-visible ~ .registration-type-radio {
    outline: 2px solid #2d4cc8;
    outline-offset: 2px;
}

.registration-type-radio {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.registration-type-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.registration-type-content strong {
    font-size: 14px;
    color: #222;
    line-height: 1.3;
}

.registration-type-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.35;
}

.registration-type-section .parent-session-note {
    margin-bottom: 20px;
}

.parent-session-note {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #2d4cc8;
}

.parent-session-note strong {
    color: #222;
}

/* Video link section */
.video-link-section {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: start;
    margin-bottom: 28px;
    width: 100%;
    min-width: 0;
}

.video-link-instructions {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid #e8eef4;
    min-width: 0;
    max-width: 100%;
}

.video-option {
    margin-bottom: 20px;
}

.video-option:last-of-type {
    margin-bottom: 0;
}

.video-option-title {
    margin: 0 0 8px;
    font-size: 15px;
    color: #222;
}

.video-option p {
    margin: 0 0 10px;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

.video-option-sublist-label {
    margin: 12px 0 6px;
}

.video-sublist {
    margin: 6px 0 12px;
}

.video-instructions-list {
    margin: 12px 0 16px;
}

.video-sublist {
    margin: 6px 0 12px;
}

.video-instructions-list,
.video-sublist {
    padding-left: 20px;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

.video-instructions-list li,
.video-sublist li {
    margin-bottom: 8px;
}

.video-instructions-list li:last-child,
.video-sublist li:last-child {
    margin-bottom: 0;
}

.demo-video-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #16a34a;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.demo-video-link:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.demo-video-icon {
    font-size: 12px;
}

.video-link-field {
    min-width: 280px;
}

.video-link-field.field-error input {
    border-color: #d64545;
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.12);
}

@media (max-width: 768px) {
    .video-link-section {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 24px;
    }

    .video-link-instructions {
        padding: 16px 20px;
    }

    .video-link-field {
        min-width: 0;
        width: 100%;
    }

    .video-link-field input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* DOB: stack on tablet for reliable display */
    .input-row-dob {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Player Name: stack on tablet for full visibility */
    .input-row-name {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Phone rows: Country & Area on one row, Phone Number on its own row below */
    .input-row-phone {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
    }

    .input-row-phone input {
        width: 100%;
        min-width: 0;
    }

    .input-row-phone input:nth-child(3) {
        grid-column: 1 / -1;
    }
}

.consent-list {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.consent-list .checkbox {
    font-size: 14px;
}

.consent-list.emphasis-text .checkbox {
    font-size: 14px;
}

.consent-list.emphasis-text .checkbox span {
    font-weight: 400;
}

/* Legal consent section */
.legal-consent-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
}

.legal-consent-section .section-title {
    margin-bottom: 18px;
}

.legal-block {
    margin-bottom: 20px;
    padding: 18px 20px;
    border: 1px solid #e8eef4;
    border-radius: 14px;
    background: #f8fafc;
}

.legal-block:last-of-type {
    margin-bottom: 24px;
}

.legal-heading {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px 0;
}

.legal-text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin: 0 0 12px 0;
}

.legal-text:last-child {
    margin-bottom: 0;
}

.consent-declaration {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 16px;
    padding: 16px 18px;
    border: 1px solid #d9e7dd;
    border-radius: 14px;
    background: #f5fbf7;
}

.consent-declaration .consent-list {
    margin-bottom: 0;
}

.consent-declaration input[type="checkbox"] {
    margin-top: 4px;
}

.consent-signature-row {
    margin-top: 8px;
}

.consent-paragraph {
    margin: 0 0 24px;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

.consent-paragraph.emphasis-text {
    font-size: 14px;
    font-weight: 600;
}

.checkbox .consent-paragraph {
    display: block;
    margin: 0;
    font-weight: 400;
    font-size: 14px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #444;
}

.checkbox input[type="checkbox"],
.checkbox input[type="radio"] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 2px 0 0;
    padding: 0;
    accent-color: #1a8f3a;
    box-shadow: none;
}

.checkbox input[type="checkbox"]:focus,
.checkbox input[type="radio"]:focus {
    outline: 2px solid rgba(45, 76, 200, 0.35);
    outline-offset: 2px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.form-message {
    margin: 0 auto 0 0;
    font-size: 13px;
    color: #b02a2a;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.page-message {
    margin: 0 auto 40px;
    max-width: 1200px;
    padding: 0 32px;
}

.form-message.is-visible {
    opacity: 1;
    transform: translateY(0);
    background: #fff5f5;
    border: 1px solid #f1b5b5;
    padding: 10px 12px;
    border-radius: 8px;
}

.secondary-btn,
.primary-btn {
    height: 44px;
    padding: 0 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.secondary-btn:hover,
.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.secondary-btn {
    background: #2d4cc8;
    color: #fff;
}

.primary-btn {
    background: #1a8f3a;
    color: #fff;
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 900px) {
    .registration {
        min-height: auto;
    }

    .banner {
        height: 130px;
    }

    .form-wrapper {
        padding: 0 24px 48px;
    }

    .form-card {
        background-size: 420px;
        padding: 32px 36px;
    }

    .field-grid.two-col {
        grid-template-columns: 1fr;
    }

    .form-title {
        font-size: 24px;
    }

    .form-partners {
        margin-top: 12px;
    }

    .form-partner-logo {
        height: 32px;
    }

    .form-partner-logo--combine {
        height: 40px;
    }

    .section-title {
        font-size: 16px;
    }

    .section-title.emphasis-title {
        font-size: 18px;
    }

    .highest-level {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .registration-type-list {
        gap: 10px;
    }

    .registration-type-item {
        padding: 16px 12px;
    }

    .registration-type-content strong {
        font-size: 13px;
    }

    .registration-type-desc {
        font-size: 11px;
    }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 600px) {
    .banner {
        height: 100px;
    }

    .form-wrapper {
        padding: 0 16px 32px;
        overflow-x: hidden;
        max-width: 100%;
    }

    .form-header {
        margin: 16px 0 12px;
    }

    .form-partners {
        margin-top: 10px;
        width: 100%;
        padding-bottom: 2px;
    }

    .form-partners-logos {
        gap: 10px;
        flex-wrap: nowrap;
    }

    .form-partner-logo {
        height: 28px;
    }

    .form-partner-logo--combine {
        height: 34px;
    }

    .form-partners-divider {
        height: 18px;
    }

    .form-card {
        padding: 24px 20px;
        border-radius: 16px;
        background-size: 280px;
    }

    .parent-session-note {
        font-size: 13px;
        padding: 14px 16px;
    }

    .registration-type-list {
        grid-template-columns: 1fr;
    }

    .registration-type-item {
        flex-direction: row;
        text-align: left;
        padding: 16px 18px;
    }

    .registration-type-item .registration-type-radio {
        align-self: flex-start;
        margin-top: 2px;
    }

    .registration-type-item .registration-type-content {
        flex: 1;
        min-width: 0;
    }

    .form-title {
        font-size: 20px;
    }

    .section-title {
        font-size: 15px;
        margin: 6px 0 14px;
    }

    .section-title.emphasis-title {
        font-size: 16px;
    }

    /* Video link section: responsive on mobile */
    .video-link-section {
        gap: 16px;
        margin-bottom: 20px;
    }

    .video-link-instructions {
        padding: 14px 16px;
        overflow-wrap: break-word;
        word-wrap: break-word;
        overflow-x: hidden;
    }

    .video-option {
        margin-bottom: 16px;
    }

    .video-option-title {
        font-size: 14px;
    }

    .video-option p {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .video-option-note {
        font-size: 13px;
    }

    .video-instructions-list,
    .video-sublist {
        font-size: 13px;
        padding-left: 18px;
    }

    .demo-video-link {
        padding: 12px 16px;
        font-size: 13px;
        min-height: 44px;
        min-width: 44px;
        align-items: center;
        justify-content: center;
    }

    .video-link-field {
        width: 100%;
    }

    .video-link-field input {
        min-width: 0;
        overflow-wrap: break-word;
    }

    .video-link-field .field-helper {
        font-size: 12px;
    }

    .legal-heading {
        font-size: 14px;
    }

    .legal-text {
        font-size: 13px;
    }

    .legal-block {
        padding: 16px;
        border-radius: 12px;
    }

    .legal-consent-section {
        margin-top: 20px;
        padding-top: 20px;
    }

    .consent-declaration {
        padding: 14px 16px;
        gap: 10px;
    }

    .form-section-parent-only .consent-declaration {
        min-height: 44px;
        padding: 16px;
    }

    .form-section-parent-only .consent-declaration input[type="checkbox"] {
        min-width: 22px;
        min-height: 22px;
    }

    .form-section-parent-only .field-grid {
        margin-bottom: 16px;
    }

    .form-card.is-parent-only .form-actions .primary-btn {
        width: 100%;
        min-height: 48px;
        font-size: 16px;
    }

    .field-grid {
        gap: 14px;
        margin-bottom: 18px;
    }

    .field {
        gap: 6px;
    }

    .field > span {
        font-size: 14px;
        line-height: 1.4;
    }

    .eligibility .field > span,
    .player-assessment .field > span {
        font-size: 14px;
    }

    .field input,
    .field select,
    .field textarea {
        font-size: 15px;
        padding: 0 14px;
        border-radius: 12px;
    }

    .field input,
    .field select {
        height: 44px;
    }

    .field textarea {
        min-height: 120px;
        padding: 12px 14px;
    }

    .highest-level {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .highest-level .checkbox {
        padding: 10px 14px;
        border-radius: 10px;
    }

    .elite-camp {
        grid-template-columns: 1fr 1fr;
    }

    .input-row.three-inputs {
        gap: 8px;
    }

    .input-row.three-inputs input:first-child,
    .input-row.three-inputs select:first-child {
        flex: 0 0 120px;
    }

    .input-row.three-inputs input:nth-child(2),
    .input-row.three-inputs select:nth-child(2) {
        flex: 0 0 100px;
    }

    .input-row.three-inputs input:last-child,
    .input-row.three-inputs select:last-child {
        flex: 1 1 110px;
        min-width: 0;
    }

    /* DOB: stack vertically on mobile so each field gets full width and values display properly */
    .input-row-dob {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .input-row-dob input,
    .input-row-dob select {
        padding-right: 36px;
        font-size: 15px;
        min-height: 44px;
    }

    /* Player Name: equal columns on phone, stack for full visibility */
    .input-row-name {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
    }

    .input-row-name input {
        font-size: 15px;
        min-width: 0;
    }

    /* Phone rows: Country & Area on one row, Phone Number on its own row below */
    .input-row-phone {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 8px;
    }

    .input-row-phone input {
        width: 100%;
        min-width: 0;
    }

    .input-row-phone input:nth-child(3) {
        grid-column: 1 / -1;
    }

    .upload-box-id {
        min-height: 120px;
    }

    .upload-box {
        padding: 16px;
        font-size: 14px;
        border-radius: 10px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .upload-status,
    .upload-file-list {
        max-width: 100%;
    }

    .upload-box small {
        font-size: 13px;
    }

    .upload-box input[type="file"] {
        font-size: 14px;
    }

    .section-note {
        font-size: 13px;
        line-height: 1.5;
    }

    .consent-list {
        gap: 10px;
        margin-bottom: 20px;
    }

    .consent-list .checkbox {
        font-size: 14px;
        gap: 10px;
    }

    .consent-list.emphasis-text .checkbox {
        font-size: 14px;
    }

    .checkbox .consent-paragraph {
        font-size: 13px;
        line-height: 1.5;
    }

    .checkbox input[type="checkbox"],
    .checkbox input[type="radio"] {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 10px;
        margin-top: 8px;
    }

    .secondary-btn,
    .primary-btn {
        width: 100%;
        height: 48px;
        font-size: 15px;
        font-weight: 600;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
    }

    .form-message.is-visible {
        font-size: 13px;
        padding: 10px 12px;
    }

    .page-message {
        padding: 0 16px;
    }
}

/* ===== Responsive: Small Mobile ===== */
@media (max-width: 380px) {
    .form-wrapper {
        padding: 0 12px 24px;
        overflow-x: hidden;
        max-width: 100%;
    }

    .video-link-instructions {
        padding: 12px 14px;
    }

    .video-option-title {
        font-size: 13px;
    }

    .video-option p,
    .video-option-note {
        font-size: 12px;
    }

    .video-instructions-list,
    .video-sublist {
        font-size: 12px;
        padding-left: 16px;
    }

    .section-title.emphasis-title {
        font-size: 15px;
        word-wrap: break-word;
    }

    .form-card {
        padding: 16px 12px;
        overflow-x: hidden;
        max-width: 100%;
    }

    .form-title {
        font-size: 18px;
    }

    .form-partners {
        margin-top: 8px;
    }

    .form-partner-logo {
        height: 24px;
    }

    .form-partner-logo--combine {
        height: 29px;
    }

    .form-partner-logo--seros {
        padding: 4px 8px;
        border-radius: 6px;
    }

    .elite-camp {
        grid-template-columns: 1fr;
    }

    .upload-box {
        padding: 14px 10px;
        max-width: 100%;
    }

    .upload-status {
        padding: 8px 10px;
        font-size: 13px;
    }

    .field input,
    .field select {
        height: 44px;
        font-size: 14px;
    }

    .field textarea {
        min-height: 100px;
        font-size: 14px;
    }

    .input-row.two-inputs,
    .input-row.three-inputs {
        flex-direction: column;
        gap: 10px;
    }

    /* DOB: single column on small screens */
    .input-row-dob {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .input-row-dob input,
    .input-row-dob select {
        padding-right: 36px;
        font-size: 14px;
    }

    /* Player Name: stack on very small screens, equal full width */
    .input-row-name {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .input-row-name input {
        font-size: 14px;
        min-width: 0;
    }

    /* Phone rows: Country & Area on one row, Phone Number on its own row below */
    .input-row-phone {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
    }

    .input-row-phone input:nth-child(3) {
        grid-column: 1 / -1;
    }

    .form-card.is-parent-only .form-actions .primary-btn {
        min-height: 48px;
        font-size: 15px;
    }

    .form-section-parent-only .consent-declaration {
        padding: 12px 14px;
    }

    .input-row.two-inputs input,
    .input-row.two-inputs select,
    .input-row.three-inputs input,
    .input-row.three-inputs select,
    .input-row-dob input,
    .input-row-dob select,
    .input-row-name input,
    .input-row-name select,
    .input-row-phone input,
    .input-row-phone select {
        flex: 1 1 auto !important;
        width: 100%;
        min-width: 0;
    }
}
