.tsv-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    font-family: inherit;
}

.tsv-form-wrap .tsv-form-row {
    margin-bottom: 1.2em;
}

.tsv-form-wrap label {
    display: block;
    font-weight: 600;
    margin-bottom: .3em;
    color: #1a1a1a;
}

.tsv-form-wrap label .tsv-required {
    color: #cc0000;
    margin-left: 2px;
}

.tsv-form-wrap input[type="text"],
.tsv-form-wrap input[type="email"],
.tsv-form-wrap input[type="tel"],
.tsv-form-wrap input[type="number"],
.tsv-form-wrap input[type="date"],
.tsv-form-wrap select,
.tsv-form-wrap textarea {
    width: 100%;
    padding: .55em .75em;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 1em;
    box-sizing: border-box;
    background: #fff;
    color: #1a1a1a;
    transition: border-color .15s;
}

.tsv-form-wrap input:focus,
.tsv-form-wrap select:focus,
.tsv-form-wrap textarea:focus {
    outline: none;
    border-color: #cc0000;
    box-shadow: 0 0 0 2px rgba(204,0,0,.15);
}

.tsv-form-wrap textarea {
    min-height: 100px;
    resize: vertical;
}

.tsv-form-wrap .tsv-field-error {
    color: #cc0000;
    font-size: .85em;
    margin-top: .25em;
    display: none;
}

.tsv-form-wrap .tsv-field-error.is-visible {
    display: block;
}

.tsv-form-wrap input.tsv-invalid,
.tsv-form-wrap select.tsv-invalid,
.tsv-form-wrap textarea.tsv-invalid {
    border-color: #cc0000;
}

.tsv-form-submit-btn {
    display: inline-block;
    background: #cc0000;
    color: #fff;
    border: none;
    padding: .65em 1.8em;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-radius: 3px;
    cursor: pointer;
    transition: background .2s;
}

.tsv-form-submit-btn:hover,
.tsv-form-submit-btn:focus {
    background: #a80000;
}

.tsv-form-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.tsv-form-global-error {
    background: #fdf2f2;
    border: 1px solid #f5c6c6;
    color: #7a1a1a;
    padding: .75em 1em;
    border-radius: 3px;
    margin-bottom: 1em;
    display: none;
}

.tsv-form-global-error.is-visible {
    display: block;
}

.tsv-form-success {
    background: #f0faf4;
    border: 1px solid #a3d9b5;
    color: #1a5c35;
    padding: 1em 1.2em;
    border-radius: 3px;
    font-weight: 600;
    display: none;
}

.tsv-form-success.is-visible {
    display: block;
}

@media (max-width: 480px) {
    .tsv-form-submit-btn {
        width: 100%;
        text-align: center;
    }
}

/* ── Site header ──────────────────────────────────────────────────────────── */

.tsv-site-header {
    background: #1a1a1a;
    padding: 12px 32px;
    text-align: center;
}

.tsv-logo-link {
    display: inline-block;
    text-decoration: none;
}

.tsv-logo-img {
    display: block;
    max-height: 72px;
    width: auto;
    margin: 0 auto 4px;
}

.tsv-logo-caption {
    display: block;
    font-size: .7rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .04em;
}

@media (max-width: 720px) {
    .tsv-site-header {
        padding: 10px 20px;
    }

    .tsv-logo-img {
        max-height: 56px;
    }
}

/* ── Individual form page ─────────────────────────────────────────────────── */

.tsv-form-hero {
    background: #1a1a1a;
    padding: 40px 32px;
    margin-bottom: 0;
}

.tsv-form-hero-inner {
    max-width: 680px;
    margin: 0 auto;
}

.tsv-breadcrumb {
    font-size: .85rem;
    color: #aaa;
    margin-bottom: 10px;
}

.tsv-breadcrumb a {
    color: #ccc;
    text-decoration: none;
}

.tsv-breadcrumb a:hover {
    color: #fff;
}

.tsv-breadcrumb span {
    margin: 0 6px;
}

.tsv-form-hero h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #fff;
}

.tsv-form-page-wrap {
    max-width: 680px;
    margin: 0 auto 60px;
    padding: 32px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    border-radius: 0 0 4px 4px;
}

/* Override form inputs inside .tsv-form-page-wrap to match spec */
.tsv-form-page-wrap .tsv-form-wrap input[type="text"],
.tsv-form-page-wrap .tsv-form-wrap input[type="email"],
.tsv-form-page-wrap .tsv-form-wrap input[type="tel"],
.tsv-form-page-wrap .tsv-form-wrap input[type="number"],
.tsv-form-page-wrap .tsv-form-wrap input[type="date"],
.tsv-form-page-wrap .tsv-form-wrap select,
.tsv-form-page-wrap .tsv-form-wrap textarea {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

@media (max-width: 720px) {
    .tsv-form-hero {
        padding: 28px 20px;
    }

    .tsv-form-page-wrap {
        padding: 20px 16px;
        margin: 0 0 40px;
    }
}

/* ── Forms index page ─────────────────────────────────────────────────────── */

.tsv-forms-index {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.tsv-forms-hero-strip {
    background: #1a1a1a;
    color: #fff;
    padding: 40px 32px;
    margin: 0 -20px 40px;
    text-align: center;
}

.tsv-forms-hero-strip h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #fff;
}

.tsv-forms-section {
    margin-bottom: 48px;
}

.tsv-forms-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #1a1a1a;
    border-bottom: 3px solid #cc0000;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.tsv-form-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tsv-form-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    transition: box-shadow .2s;
}

.tsv-form-card:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
}

.tsv-form-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.tsv-form-card-desc {
    color: #555;
    font-size: .9rem;
    line-height: 1.5;
    margin: 0 0 12px;
    flex: 1;
}

.tsv-form-card-meta {
    color: #888;
    font-size: .8rem;
    margin: 0 0 16px;
}

.tsv-form-card-btn {
    display: inline-block;
    background: #cc0000;
    color: #fff;
    padding: .55em 1.4em;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 700;
    font-size: .875rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    align-self: flex-start;
    transition: background .2s;
}

.tsv-form-card-btn:hover,
.tsv-form-card-btn:focus {
    background: #a80000;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 640px) {
    .tsv-form-card-grid {
        grid-template-columns: 1fr;
    }

    .tsv-forms-hero-strip {
        margin: 0 -20px 28px;
        padding: 28px 20px;
    }

    .tsv-forms-hero-strip h1 {
        font-size: 1.5rem;
    }

    .tsv-form-card-btn {
        align-self: stretch;
        text-align: center;
    }
}

/* ── Forms index — flat list ──────────────────────────────────────────────── */

.tsv-forms-list {
    max-width: 680px;
    margin: 32px auto 60px;
    padding: 0 20px;
}

.tsv-form-list-item {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e8e8e8;
}

.tsv-form-list-item:last-child {
    border-bottom: none;
}

.tsv-form-list-item h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.tsv-form-list-item h2 a {
    color: #1a1a1a;
    text-decoration: none;
}

.tsv-form-list-item h2 a:hover {
    color: #cc0000;
    text-decoration: underline;
}

.tsv-form-list-item p {
    color: #444;
    font-size: .95rem;
    line-height: 1.55;
    margin: 0 0 10px;
}

.tsv-read-more {
    font-size: .875rem;
    color: #cc0000;
    text-decoration: none;
    font-weight: 600;
}

.tsv-read-more:hover {
    text-decoration: underline;
}

/* ── Program description block ────────────────────────────────────────────── */

.tsv-program-description {
    font-size: 13px;
    line-height: 1.6;
    color: #1a1a1a;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.tsv-program-description h2 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.tsv-program-description h3 {
    font-size: .95rem;
    font-weight: 700;
    margin: 16px 0 6px;
    color: #1a1a1a;
}

.tsv-program-description p {
    margin: 0 0 8px;
}

.tsv-program-description ul {
    margin: 0 0 8px 20px;
    padding: 0;
}

.tsv-program-description li {
    margin-bottom: 4px;
}

/* ── DOB triple-select ────────────────────────────────────────────────────── */

.tsv-dob-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tsv-dob-group select {
    flex: 1;
    min-width: 0;
}

@media (max-width: 480px) {
    .tsv-dob-group {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
}

/* ── Legal text (above signature field) ───────────────────────────────────── */

.tsv-legal-text {
    font-size: 11px;
    line-height: 1.55;
    color: #555;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

/* ── Section divider ──────────────────────────────────────────────────────── */

.tsv-form-section-divider {
    margin: 28px 0 16px;
}

.tsv-form-section-divider hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 0 0 10px;
}

.tsv-form-section-divider h3 {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #555;
    margin: 0;
}

/* ── Age groups list ──────────────────────────────────────────────────────── */

.tsv-age-groups {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    line-height: 1.8;
    font-size: 13px;
    color: #333;
}

.tsv-age-groups li {
    padding: 0;
}

/* ── Form body overrides (13–14px spec) ───────────────────────────────────── */

.tsv-form-page-wrap .tsv-form-wrap {
    font-size: 13px;
}

.tsv-form-page-wrap .tsv-form-wrap label {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 13px;
}

.tsv-form-page-wrap .tsv-form-wrap .tsv-form-row {
    margin-bottom: 1em;
}
