/* ======================================================================
   TCCC Registration Dashboard — Style Guide
   Colors: #001729 | #004E7A | #87E3E6 | #EFEFEA | #016636
   Font: Glacial Indifference (self-hosted in /assets/fonts/)
   ====================================================================== */

@font-face {
    font-family: 'Glacial Indifference';
    src: url('../fonts/GlacialIndifference-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Glacial Indifference';
    src: url('../fonts/GlacialIndifference-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Glacial Indifference';
    src: url('../fonts/GlacialIndifference-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --font-heading: 'Glacial Indifference', 'Century Gothic', 'Futura', sans-serif;
    --font-ui:      'Glacial Indifference', 'Century Gothic', 'Futura', sans-serif;
}

/* ----------------------------------------------------------------------
   CSS Variables
---------------------------------------------------------------------- */
:root {
    --navy:      #001729;
    --ocean:     #004E7A;
    --aqua:      #87E3E6;
    --cream:     #EFEFEA;
    --green:     #016636;
    --aqua-soft: rgba(135, 227, 230, 0.18);
    --aqua-mid:  rgba(135, 227, 230, 0.38);
    --navy-soft: rgba(0, 23, 41, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 23, 41, 0.10);
    --shadow-md: 0 6px 24px rgba(0, 23, 41, 0.14);
    --shadow-lg: 0 16px 48px rgba(0, 23, 41, 0.18);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------------------------------------------
   Base Reset for Plugin Scope
---------------------------------------------------------------------- */
.tccc-dashboard *,
.tccc-dashboard *::before,
.tccc-dashboard *::after {
    box-sizing: border-box;
}

.tccc-dashboard {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--navy);
    background: transparent;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

/* ----------------------------------------------------------------------
   Dashboard Header — light, not dominant
---------------------------------------------------------------------- */
.tccc-dashboard > h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--navy);
    background: transparent;
    margin: 0 0 1.2em;
    padding: 0 0 0.5em;
    border-bottom: 2px solid rgba(0, 23, 41, 0.08);
    position: relative;
}

.tccc-dashboard > h2::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 60px;
    height: 2px;
    background: var(--aqua);
}

/* ----------------------------------------------------------------------
   Registrations Table
---------------------------------------------------------------------- */
.tccc-table-wrapper {
    padding: 0 0 1.5em;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tccc-table {
    width: 100%;
    min-width: 540px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0, 23, 41, 0.08);
    margin-bottom: 0;
    font-size: 1.5rem;
}

.tccc-table thead tr {
    background: var(--ocean);
}

.tccc-table th {
    color: var(--cream);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 1em 1.2em;
    text-align: left;
    border: none;
    white-space: nowrap;
}

.tccc-table th:first-child { border-radius: 0; }

.tccc-table td {
    padding: 1em 1.2em;
    border: none;
    border-bottom: 1px solid rgba(0, 23, 41, 0.06);
    vertical-align: middle;
    color: var(--navy);
    font-size: 1.4rem;
}

.tccc-table tbody tr:last-child td {
    border-bottom: none;
}

/* Role badge */
.tccc-table td:nth-child(2) {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #001729;
}

.tccc-table tbody tr[data-role="Guardian"] td:nth-child(2),
.tccc-table tbody tr[data-role="Camper"] td:nth-child(2) {
    color: #001729;
}

/* Row hover */
.tccc-table tbody tr {
    transition: background var(--transition);
}

.tccc-table tbody tr:hover {
    background: var(--aqua-soft);
}

/* Empty state */
.tccc-table tbody tr.tccc-empty td {
    text-align: center;
    color: rgba(0,23,41,0.35);
    font-style: italic;
    padding: 2.5em;
    font-size: 1.3rem;
}

/* ----------------------------------------------------------------------
   Action Buttons (table)
---------------------------------------------------------------------- */
.tccc-table .edit-registration-btn,
.tccc-table .delete-registration-btn {
    font-family: var(--font-ui) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    padding: 0.55em 1.1em !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center;
    gap: 0.35em;
    text-decoration: none !important;
}

/* Edit — identical to Register Guardian card button (ocean→navy) */
.tccc-table .edit-registration-btn {
    background: linear-gradient(160deg, var(--ocean) 0%, var(--navy) 100%) !important;
    color: var(--cream) !important;
    margin-right: 0.4em;
    box-shadow: 0 2px 8px rgba(0, 78, 122, 0.25);
}
.tccc-table .edit-registration-btn::before { content: '✏️'; font-size: 0.85em; }
.tccc-table .edit-registration-btn:hover {
    filter: brightness(1.14) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 78, 122, 0.4);
    color: var(--cream) !important;
}

/* Delete — red gradient (destructive action) */
.tccc-table .delete-registration-btn {
    background: linear-gradient(160deg, #A32D2D 0%, #791F1F 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(163, 45, 45, 0.25);
}
.tccc-table .delete-registration-btn::before { content: '🗑️'; font-size: 0.85em; }
.tccc-table .delete-registration-btn:hover {
    filter: brightness(1.14) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(163, 45, 45, 0.4);
    color: #fff !important;
}

/* ----------------------------------------------------------------------
   Form Container
---------------------------------------------------------------------- */
#tccc-registration-form {
    margin: 1.5em 0 0;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 8px rgba(0, 23, 41, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 23, 41, 0.07);
}

#tccc-registration-form h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    background: rgba(0, 23, 41, 0.03);
    margin: 0;
    padding: 0.9em 1.4em;
    letter-spacing: 0.01em;
    border-bottom: 1px solid rgba(0, 23, 41, 0.07);
}

/* Controls row */
.tccc-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75em;
    padding: 1.2em 1.4em;
    background: var(--navy-soft);
    border-bottom: 1px solid rgba(0,23,41,0.07);
    flex-wrap: wrap;
}

#add-guardian-btn,
#add-camper-btn,
.tccc-add-btn {
    font-family: var(--font-ui) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    padding: 0.65em 1.5em !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5em;
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1;
}

/* Guardian button — ocean→navy gradient matching Register Guardian card button */
#add-guardian-btn,
.tccc-add-guardian-btn {
    background: linear-gradient(160deg, var(--ocean) 0%, var(--navy) 100%) !important;
    color: var(--cream) !important;
    box-shadow: 0 3px 10px rgba(0, 78, 122, 0.3);
}
#add-guardian-btn:hover,
.tccc-add-guardian-btn:hover {
    filter: brightness(1.14) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0, 78, 122, 0.4);
    color: var(--cream) !important;
}

/* Camper button — green gradient matching Register Camper card button */
#add-camper-btn,
.tccc-add-camper-btn {
    background: linear-gradient(160deg, var(--green) 0%, #014d28 100%) !important;
    color: var(--cream) !important;
    box-shadow: 0 3px 10px rgba(1, 102, 54, 0.3);
}
#add-camper-btn:hover,
.tccc-add-camper-btn:hover {
    filter: brightness(1.14) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(1, 102, 54, 0.4);
    color: var(--cream) !important;
}

/* Save All button — hidden, action now lives in individual cards */
.tccc-save-row,
#tccc-save-registration-btn,
.tccc-save-all-btn {
    display: none !important;
}

/* ----------------------------------------------------------------------
   Entry Sections
---------------------------------------------------------------------- */
.tccc-form-sections {
    padding: 1em 1.2em;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.tccc-entries {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease,
                margin 0.3s ease;
    margin: 0;
}

.tccc-entries.active {
    max-height: 3000px;
    opacity: 1;
}

.tccc-entries h4 {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ocean);
    margin: 0 0 0.9em;
    padding-left: 32px;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.tccc-entries h4::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--aqua) 0%, transparent 100%);
    opacity: 0.6;
}

#tccc-guardians-container h4::before { content: '👤 '; font-size: 0.9em; }
#tccc-campers-container   h4::before { content: '🏕️ '; font-size: 0.9em; }

/* ----------------------------------------------------------------------
   h and p padding throughout dashboard
---------------------------------------------------------------------- */
.tccc-dashboard h2,
.tccc-dashboard h3,
.tccc-dashboard h4,
.tccc-dashboard p {
    padding-left: 32px;
}

.tccc-dashboard h2 {
    padding-right: 32px;
}

/* Instructions paragraph */
.tccc-instructions {
    margin: 1em 0 0;
    padding: 1em 1.4em 1em calc(32px + 1em);
    background: var(--aqua-soft);
    border-left: 3px solid var(--aqua);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--navy);
}

.tccc-instructions strong { color: var(--ocean); font-weight: 600; }

/* ----------------------------------------------------------------------
   Entry card grid — 3-column layout
   Col 1: inputs (33%) | Col 2: inputs (33%) | Col 3: save button (33%)
---------------------------------------------------------------------- */
.tccc-card-container {
    display: flex;
    flex-direction: column;
    gap: 0.85em;
}

.guardian-entry,
.camper-entry {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    grid-template-rows: auto;
    gap: 0 0.75em;
    align-items: start;
    background: var(--cream);
    border: 1.5px solid rgba(0, 78, 122, 0.15);
    border-radius: var(--radius-md);
    padding: 1em;
    position: relative;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.guardian-entry { border-top: 3px solid var(--ocean); }
.camper-entry   { border-top: 3px solid var(--green); }

.guardian-entry:hover,
.camper-entry:hover {
    border-color: var(--aqua);
    box-shadow: var(--shadow-md);
}

/* Col 1 and col 2 — stacked input groups */
.entry-col {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

/* Full-width rows that span both input columns */
.entry-full {
    grid-column: 1 / 3;
}

/* Save button column — spans full height */
.entry-save-col {
    grid-column: 3;
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    min-width: 140px;
    padding-left: 0.5em;
    border-left: 1px solid rgba(0,23,41,0.08);
}

/* Individual input fields */
.guardian-entry input,
.guardian-entry select,
.camper-entry input,
.camper-entry select {
    width: 100%;
    padding: 0.65em 0.85em;
    font-family: var(--font-ui);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--navy);
    background: #ffffff !important;
    border: 1.5px solid rgba(0, 23, 41, 0.15);
    border-radius: var(--radius-sm) !important;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    margin: 0;
}

.guardian-entry input:focus,
.guardian-entry select:focus,
.camper-entry input:focus,
.camper-entry select:focus {
    outline: none;
    border-color: var(--aqua);
    box-shadow: 0 0 0 3px var(--aqua-mid);
}

.guardian-entry input::placeholder,
.camper-entry input::placeholder {
    color: rgba(0, 23, 41, 0.45);
    font-weight: 300;
    font-size: 1.15rem;
}

/* Select arrow */
.guardian-entry select:not([multiple]),
.camper-entry select:not([multiple]) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23004E7A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85em center;
    padding-right: 2.2em;
}

/* Multi-select guardian list */
.guardian-select,
.camper-entry select[multiple] {
    min-height: 90px;
    background-image: none !important;
    padding-right: 0.85em;
    resize: vertical;
}

.guardian-select option,
.camper-entry select[multiple] option {
    padding: 0.5em 0.6em;
    font-size: 1.2rem;
}

.guardian-select option:checked,
.camper-entry select[multiple] option:checked {
    background: var(--ocean);
    color: var(--cream);
}

/* Guardian assign label */
.guardian-assign-label {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--ocean);
    margin-bottom: 0.3em;
}

.guardian-assign-label strong { color: #A32D2D; }

.no-guardian-note {
    font-size: 1.1rem;
    color: #A32D2D;
    background: rgba(163, 45, 45, 0.06);
    border-left: 3px solid #A32D2D;
    padding: 0.6em 0.85em;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 0.3em 0 0;
}

/* ----------------------------------------------------------------------
   Register Save Button — scoped under .tccc-dashboard to beat
   Illdy's  button, button:hover { background: #7a1c2e }
---------------------------------------------------------------------- */
.tccc-dashboard .entry-save-btn {
    font-family: var(--font-ui) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-align: center;
    padding: 1em 0.75em !important;
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: linear-gradient(160deg, #016636 0%, #014d28 100%) !important;
    color: #EFEFEA !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    box-shadow: 0 4px 16px rgba(1, 102, 54, 0.3) !important;
}

.tccc-dashboard .entry-save-btn .save-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.tccc-dashboard .entry-save-btn:hover {
    filter: brightness(1.12) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(1, 102, 54, 0.4) !important;
    background: linear-gradient(160deg, #016636 0%, #014d28 100%) !important;
    color: #EFEFEA !important;
}

.tccc-dashboard .entry-save-btn:active {
    transform: translateY(0) !important;
    filter: brightness(0.95) !important;
}

/* Guardian save button — ocean→navy gradient */
.tccc-dashboard .guardian-entry .entry-save-btn {
    background: linear-gradient(160deg, #004E7A 0%, #001729 100%) !important;
    box-shadow: 0 4px 16px rgba(0, 78, 122, 0.3) !important;
    color: #EFEFEA !important;
}

.tccc-dashboard .guardian-entry .entry-save-btn:hover {
    background: linear-gradient(160deg, #004E7A 0%, #001729 100%) !important;
    box-shadow: 0 8px 24px rgba(0, 78, 122, 0.4) !important;
    filter: brightness(1.12) !important;
    color: #EFEFEA !important;
}

/* Remove (X) button */
.remove-entry {
    position: absolute;
    top: 0.6em;
    right: 0.6em;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,23,41,0.08);
    border: none;
    border-radius: 50%;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    line-height: 1;
    padding: 0;
    z-index: 2;
}

.remove-entry:hover {
    background: #A32D2D;
    color: #fff;
}

/* ----------------------------------------------------------------------
   Mobile — stack to single column, button below
---------------------------------------------------------------------- */
@media (max-width: 680px) {
    .guardian-entry,
    .camper-entry {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .entry-save-col {
        grid-column: 1;
        grid-row: auto;
        border-left: none;
        border-top: 1px solid rgba(0,23,41,0.08);
        padding-left: 0;
        padding-top: 0.75em;
        min-width: unset;
    }

    .entry-full {
        grid-column: 1;
    }

    .entry-save-btn {
        min-height: 56px;
        flex-direction: row;
        gap: 0.6em;
        padding: 0.85em 1.2em;
    }
}

/* ----------------------------------------------------------------------
   Welcome Banner (shown when no registrations exist)
---------------------------------------------------------------------- */
.tccc-welcome-banner {
    padding: 0 0 1.5em;
    border-bottom: 2px solid rgba(0, 23, 41, 0.08);
    margin-bottom: 2em;
    position: relative;
}

.tccc-welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 60px;
    height: 2px;
    background: var(--aqua);
}

.tccc-welcome-banner h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 0.5em;
}

.tccc-welcome-banner p {
    font-size: 1.3rem;
    color: rgba(0, 23, 41, 0.6);
    margin: 0;
    line-height: 1.6;
}

/* ----------------------------------------------------------------------
   Start Enrollment CTA — top of section, centered, prominent
---------------------------------------------------------------------- */
.tccc-register-cta.tccc-cta-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.2em 1.5em 2em;
    margin: 0 0 2em;
    background: linear-gradient(135deg, #001729 0%, #004E7A 60%, #016636 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 23, 41, 0.25);
    position: relative;
    overflow: hidden;
}

/* Subtle shimmer overlay */
.tccc-register-cta.tccc-cta-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(135,227,230,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.tccc-register-cta.tccc-cta-top .tccc-cta-sub {
    font-size: 1.2rem;
    color: rgba(239, 239, 234, 0.7);
    margin: 0 0 1.6em;
    line-height: 1.6;
    max-width: 500px;
}

/* Old CTA (non-top) — hide entirely, replaced by top version */
.tccc-register-cta:not(.tccc-cta-top) {
    display: none;
}

.tccc-cta-divider { display: none; }

.tccc-register-cta h3 {
    display: none; /* Sub-text paragraph replaces the h3 */
}

/* Start Enrollment button — large, polished, gradient */
.tccc-dashboard .tccc-btn-register-another,
.tccc-dashboard button.tccc-btn-register-another,
body.woocommerce-account .woocommerce-MyAccount-content .tccc-btn-register-another {
    font-family: 'Glacial Indifference', 'Century Gothic', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    padding: 1em 3em !important;
    background: linear-gradient(160deg, #87E3E6 0%, #016636 100%) !important;
    color: #001729 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5em !important;
    box-shadow: 0 4px 20px rgba(135, 227, 230, 0.35), 0 2px 8px rgba(0,0,0,0.2) !important;
    text-decoration: none !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    position: relative;
    z-index: 1;
}

body.woocommerce-account .woocommerce-MyAccount-content .tccc-btn-register-another:hover,
.tccc-dashboard .tccc-btn-register-another:hover {
    filter: brightness(1.08) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 32px rgba(135, 227, 230, 0.5), 0 4px 16px rgba(0,0,0,0.25) !important;
    color: #001729 !important;
    background: linear-gradient(160deg, #87E3E6 0%, #016636 100%) !important;
}

/* Wizard section — revealed after CTA click */
.tccc-wizard-section {
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 2px solid rgba(0, 23, 41, 0.08);
}

/* ----------------------------------------------------------------------
   Responsive
---------------------------------------------------------------------- */
@media (max-width: 680px) {
    .tccc-dashboard > h2 {
        font-size: 1.95rem;
        padding: 1.2em 1.2em 1.1em;
    }

    .tccc-table-wrapper,
    #tccc-registration-form,
    .tccc-instructions {
        margin-left: 0;
        margin-right: 0;
    }

    .tccc-controls {
        padding: 1em 1.2em;
    }

    .tccc-form-sections {
        padding: 1em 1.2em;
    }

    .tccc-table th,
    .tccc-table td {
        padding: 0.7em 0.7em;
        font-size: 1.45rem;
    }

    /* Hide less critical columns on mobile */
    .tccc-table th:nth-child(5),
    .tccc-table td:nth-child(5),
    .tccc-table th:nth-child(6),
    .tccc-table td:nth-child(6) {
        display: none;
    }

    /* Start Enrollment — full width, large tap target on mobile */
    .tccc-register-cta.tccc-cta-top {
        padding: 1.6em 1em 1.5em;
        margin-bottom: 1.5em;
    }

    .tccc-dashboard .tccc-btn-register-another,
    body.woocommerce-account .woocommerce-MyAccount-content .tccc-btn-register-another {
        font-size: 1.25rem !important;
        padding: 1em 1.5em !important;
        width: 100% !important;
        max-width: 380px;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .tccc-register-cta.tccc-cta-top .tccc-cta-sub {
        font-size: 1rem;
        margin: 0 0 1.2em;
    }
}

/* ----------------------------------------------------------------------
   Date input — cross-browser height and iOS Safari fix
   iOS Safari ignores height on date inputs and shows a tiny field.
   The :not(:valid) trick shows greyed placeholder-style text when empty.
---------------------------------------------------------------------- */
.tccc-dashboard input[type="date"],
.tccc-form input[type="date"],
input[type="date"].camper-birthday,
input[type="date"].guardian-birthday {
    min-height: 44px !important;
    line-height: 1.5 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    color: #001729;
    /* Ensure padding matches text inputs */
    padding-top: 0.6em !important;
    padding-bottom: 0.6em !important;
}

/* Grey out empty date field like a placeholder on Safari */
.tccc-dashboard input[type="date"]:not(:valid),
.tccc-form input[type="date"]:not(:valid) {
    color: rgba(0, 23, 41, 0.38);
}

/* Fix Safari/iOS inner date value alignment */
input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
    min-height: 1.5em;
    padding: 0;
}
/* Ensure webkit inner edit fields inherit height */
input[type="date"]::-webkit-datetime-edit {
    padding: 0;
    line-height: 1.5;
}
input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}


/* ----------------------------------------------------------------------
   Date input overlay placeholder — shared with wizard
   Wrapper div sits around every date input; span overlays the empty field.
---------------------------------------------------------------------- */
.date-input-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.date-input-wrap input[type="date"] {
    position: relative;
    z-index: 2;
    width: 100%;
    color: #001729;
}

/* Hide native value text on iOS Safari when empty so overlay shows */
.date-input-wrap input[type="date"]:not(:valid) {
    color: transparent;
}

.date-input-wrap input[type="date"]:valid,
.date-input-wrap input[type="date"]:focus {
    color: #001729;
}

.date-placeholder {
    position: absolute;
    left: 1.1em;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Glacial Indifference', 'Century Gothic', sans-serif;
    font-size: 1.1rem;
    color: rgba(0, 23, 41, 0.38);
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

.date-input-wrap input[type="date"]:valid ~ .date-placeholder,
.date-input-wrap input[type="date"]:focus ~ .date-placeholder,
.date-input-wrap.has-value .date-placeholder {
    opacity: 0;
}
