/* Personal Tutor Landing Page Styles */

/* ==========================================================================
   Button Overrides for Light Backgrounds
   The global .btn-ghost uses white text which is invisible on parchment.
   These overrides ensure all buttons are visible on this landing page.
   ========================================================================== */

.personal-tutor-landing .btn-ghost {
    color: var(--ink-soft);
    border-color: rgba(143, 120, 80, 0.45);
}

.personal-tutor-landing .btn-ghost:hover {
    color: var(--ink-soft);
    border-color: rgba(143, 120, 80, 0.7);
    background: rgba(255, 231, 10, 0.1);
}

.personal-tutor-landing .btn-accent {
    color: #1a120a;
}

/* Hero Section */
.pt-hero {
    position: relative;
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
    color: var(--ink-soft);
    background:
        radial-gradient(120% 140% at 12% 12%, rgba(255, 231, 10, 0.28), transparent 45%),
        radial-gradient(120% 140% at 82% 10%, rgba(238, 210, 150, 0.42), transparent 52%),
        linear-gradient(180deg, #f8f3e7 0%, #f2e8d7 100%);
    border-bottom: 1px solid rgba(199, 173, 132, 0.35);
    overflow: hidden;
}

.pt-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(50% 38% at 50% 16%, rgba(255, 255, 255, 0.52), transparent 65%);
    pointer-events: none;
}

.pt-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
}

.pt-hero__copy {
    display: grid;
    gap: 1rem;
}

.pt-hero__copy h1 {
    margin: 0;
    font-size: clamp(2rem, 2.2vw + 1.2rem, 3rem);
    line-height: 1.15;
    color: var(--ink-soft);
}

.pt-hero__lead {
    margin: 0;
    font-size: clamp(1rem, 0.95rem + 0.4vw, 1.15rem);
    line-height: 1.7;
    color: var(--ink-muted);
    max-width: 52ch;
}

.pt-hero__lead strong {
    color: var(--ink-soft);
}

.pt-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.pt-hero__visual {
    display: grid;
    place-items: center;
}

.pt-hero__card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 238, 225, 0.98));
    border: 1px solid rgba(199, 173, 132, 0.4);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: 0 24px 60px rgba(57, 39, 20, 0.18);
    display: grid;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
}

.pt-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 231, 10, 0.18);
    border: 1px solid rgba(255, 231, 10, 0.35);
    color: rgba(124, 96, 52, 0.9);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: var(--font-xs);
    font-weight: 700;
    width: fit-content;
}

.pt-hero__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.pt-hero__features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(199, 173, 132, 0.25);
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.pt-hero__feature-icon {
    font-size: 1.1rem;
}

/* Hero trust badges */
.pt-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 0.5rem;
}

.pt-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: var(--ink-muted);
    font-weight: 500;
}

.pt-trust-badge::before {
    content: "";
    display: none;
}

/* Hero copy em styling */
.pt-hero__copy h1 em {
    font-style: normal;
    color: #7c6034;
    position: relative;
}

/* Hero card larger for more content */
.pt-hero__card {
    max-width: 380px;
}

.pt-hero__features li span:last-child {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Section head subtitle */
.section-head__sub {
    margin: 0.5rem 0 0;
    color: var(--ink-muted);
    font-size: 1rem;
    max-width: 56ch;
}

.section-head--soft .section-head__sub {
    color: var(--ink-muted);
}

/* Core Values Section */
.pt-values__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.pt-value-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 238, 225, 0.96));
    border-radius: 18px;
    padding: clamp(1.3rem, 2.5vw, 1.8rem);
    box-shadow: 0 18px 45px rgba(57, 39, 20, 0.14);
    border: 1px solid rgba(199, 173, 132, 0.32);
    display: grid;
    gap: 0.6rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pt-value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(57, 39, 20, 0.2);
    border-color: rgba(199, 173, 132, 0.5);
}

.pt-value-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 231, 10, 0.22), rgba(238, 210, 150, 0.28));
    display: grid;
    place-items: center;
    font-size: 1.4rem;
}

.pt-value-card h3 {
    margin: 0;
    font-size: 1.08rem;
    color: var(--ink-soft);
}

.pt-value-card p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* How It Works Section */
.pt-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-top: 0.5rem;
}

.pt-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: start;
}

.pt-step__number {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #FFE156 0%, #C9A227 100%);
    color: #1a120a;
    font-size: 1.3rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 28px rgba(201, 162, 39, 0.35);
}

.pt-step__content {
    display: grid;
    gap: 0.35rem;
}

.pt-step__content h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--ink-soft);
}

.pt-step__content p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Subjects & Languages Section */
.pt-subjects__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
}

.pt-subjects__group h3 {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    color: var(--ink-soft);
}

.pt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pt-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 234, 219, 0.9));
    border: 1px solid rgba(199, 173, 132, 0.4);
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(57, 39, 20, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pt-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(57, 39, 20, 0.15);
}

.pt-chip--subject {
    background: linear-gradient(180deg, rgba(255, 245, 200, 0.95), rgba(255, 231, 10, 0.15));
    border-color: rgba(255, 231, 10, 0.4);
}

.pt-chip--language {
    background: linear-gradient(180deg, rgba(230, 255, 240, 0.95), rgba(82, 240, 196, 0.15));
    border-color: rgba(82, 240, 196, 0.35);
}

.pt-chip--small {
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
}

/* Trust Section */
.pt-trust__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
}

.pt-trust__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: clamp(1.2rem, 2vw, 1.6rem);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(247, 238, 225, 0.9));
    border: 1px solid rgba(199, 173, 132, 0.28);
    box-shadow: 0 12px 32px rgba(57, 39, 20, 0.1);
}

.pt-trust__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 231, 10, 0.15);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pt-trust__text {
    display: grid;
    gap: 0.25rem;
}

.pt-trust__text strong {
    font-size: 1rem;
    color: var(--ink-soft);
}

.pt-trust__text p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Tutor Preview Section */
.pt-tutors__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.pt-tutor-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 238, 225, 0.98));
    border: 1px solid rgba(199, 173, 132, 0.35);
    border-radius: 20px;
    padding: clamp(1.3rem, 2.5vw, 1.8rem);
    box-shadow: 0 18px 45px rgba(57, 39, 20, 0.14);
    display: grid;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pt-tutor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(57, 39, 20, 0.2);
    border-color: rgba(199, 173, 132, 0.5);
}

.pt-tutor-card__photo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(199, 173, 132, 0.15);
    border: 1px solid rgba(199, 173, 132, 0.3);
}

.pt-tutor-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pt-tutor-card__initial {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ink-muted);
    background: rgba(255, 231, 10, 0.12);
}

.pt-tutor-card__info {
    display: grid;
    gap: 0.25rem;
}

.pt-tutor-card__info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--ink-soft);
}

.pt-tutor-card__specialty {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.92rem;
}

/* Enhanced tutor card layout */
.pt-tutor-card__header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.pt-tutor-card__photo--large {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    flex-shrink: 0;
}

.pt-tutor-card__exp {
    display: inline-block;
    font-size: 0.78rem;
    color: #7c6034;
    background: rgba(255, 231, 10, 0.18);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    margin-top: 0.25rem;
}

.pt-tutor-card__bio {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ink-muted);
    line-height: 1.55;
    font-style: italic;
}

.pt-tutor-card__meta {
    display: grid;
    gap: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(199, 173, 132, 0.25);
}

.pt-tutor-card__row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.pt-tutor-card__label {
    font-size: 0.78rem;
    color: var(--ink-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 0.15rem;
    min-width: 70px;
}

.pt-tutor-card__subjects,
.pt-tutor-card__languages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.pt-tutor-card__btn {
    margin-top: 0.5rem;
    width: 100%;
}

.pt-tutors__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.pt-tutors__reassurance {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink-muted);
    text-align: center;
}

/* Primary CTA Section */
.pt-cta-section {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background:
        radial-gradient(140% 120% at 50% 0%, rgba(255, 231, 10, 0.22), transparent 55%),
        linear-gradient(180deg, #e9ddcd 0%, #f4ede2 100%);
}

.pt-cta-card {
    background: linear-gradient(160deg, rgba(18, 22, 32, 0.96), rgba(10, 12, 20, 0.94));
    border: 1px solid rgba(255, 231, 10, 0.25);
    border-radius: 24px;
    padding: clamp(2rem, 4vw, 3.5rem);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.4);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pt-cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 100% at 50% 0%, rgba(255, 231, 10, 0.18), transparent 50%);
    pointer-events: none;
}

.pt-cta-card__content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
    justify-items: center;
}

.pt-cta-card h2 {
    margin: 0;
    font-size: clamp(1.5rem, 1.3rem + 1vw, 2.2rem);
    color: #f5f6f8;
}

.pt-cta-card p {
    margin: 0;
    color: #b8bdc7;
    max-width: 48ch;
    font-size: 1.02rem;
}

.pt-cta-card p strong {
    color: #f5f6f8;
}

.pt-cta-card__eyebrow {
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    font-weight: 700;
}

.pt-cta-card__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pt-cta-card__trust span {
    font-size: 0.85rem;
    color: rgba(184, 189, 199, 0.85);
}

/* FAQ Section */
.pt-faq__list {
    display: grid;
    gap: 0.75rem;
}

.pt-faq__item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 238, 225, 0.95));
    border: 1px solid rgba(199, 173, 132, 0.32);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pt-faq__item[open] {
    border-color: rgba(199, 173, 132, 0.5);
    box-shadow: 0 12px 32px rgba(57, 39, 20, 0.12);
}

.pt-faq__question {
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink-soft);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pt-faq__question::-webkit-details-marker {
    display: none;
}

.pt-faq__question::after {
    content: "+";
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--ink-muted);
    transition: transform 0.2s ease;
}

.pt-faq__item[open] .pt-faq__question::after {
    transform: rotate(45deg);
}

.pt-faq__answer {
    padding: 0 1.25rem 1.25rem;
}

.pt-faq__answer p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .pt-hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pt-hero__copy {
        align-items: center;
    }

    .pt-hero__lead {
        max-width: none;
    }

    .pt-hero__actions {
        justify-content: center;
    }

    .pt-hero__visual {
        order: -1;
    }

    .pt-hero__card {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .pt-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pt-hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .pt-step {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: center;
    }

    .pt-step__number {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        margin: 0 auto;
    }

    .pt-subjects__content {
        text-align: center;
    }

    .pt-subjects__group h3 {
        text-align: center;
    }

    .pt-chips {
        justify-content: center;
    }

    .pt-trust__item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .pt-tutor-card {
        text-align: center;
    }

    .pt-tutor-card__photo {
        margin: 0 auto;
    }

    .pt-tutor-card__subjects {
        justify-content: center;
    }
}

/* ==========================================================================
   Become a Tutor Section
   ========================================================================== */

.pt-become-tutor {
    padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.pt-become-card {
    background: linear-gradient(160deg, rgba(18, 22, 32, 0.96), rgba(10, 12, 20, 0.94));
    border: 1px solid rgba(255, 231, 10, 0.25);
    border-radius: 24px;
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.pt-become-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 100% at 50% 0%, rgba(255, 231, 10, 0.14), transparent 50%);
    pointer-events: none;
}

.pt-become-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.pt-become-card__icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.pt-become-card__text {
    flex: 1;
}

.pt-become-card__text h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem);
    color: #f5f6f8;
    line-height: 1.3;
}

.pt-become-card__text p {
    margin: 0 0 0.75rem;
    color: #b8bdc7;
    font-size: 0.95rem;
    line-height: 1.6;
}

.pt-become-card__perks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.pt-become-card__perks span {
    font-size: 0.85rem;
    color: rgba(255, 231, 10, 0.85);
    font-weight: 600;
}

.pt-become-card .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .pt-become-card__content {
        flex-direction: column;
        text-align: center;
    }

    .pt-become-card__perks {
        justify-content: center;
    }
}

/* Apply as Tutor Hero Button — Premium CTA */
.btn-apply-tutor {
    position: relative;
    background: linear-gradient(135deg, #C9A227, #e6c84a, #C9A227) !important;
    background-size: 200% 200% !important;
    color: #1a1208 !important;
    border: 2px solid rgba(201, 162, 39, 0.6) !important;
    font-weight: 700;
    padding: 0.65rem 1.5rem !important;
    border-radius: 12px !important;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 18px rgba(201, 162, 39, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: applyBtnShimmer 3s ease-in-out infinite;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-apply-tutor::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg,
            transparent 30%,
            rgba(255, 255, 255, 0.25) 50%,
            transparent 70%);
    animation: applyBtnSweep 4s ease-in-out infinite;
    pointer-events: none;
}

.btn-apply-tutor:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 28px rgba(201, 162, 39, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    background: linear-gradient(135deg, #d4af37, #f0d85c, #d4af37) !important;
    border-color: rgba(201, 162, 39, 0.9) !important;
}

.btn-apply-tutor:active {
    transform: translateY(0) scale(0.98);
}

@keyframes applyBtnShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes applyBtnSweep {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }

    40%,
    100% {
        transform: translateX(100%) rotate(25deg);
    }
}

/* ==========================================================================
   Tutor Apply Modal
   ========================================================================== */

.ta-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 8, 5, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: taFadeIn 0.25s ease;
}

@keyframes taFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ta-modal {
    background: linear-gradient(180deg, #fdf8ef 0%, #f4ede2 100%);
    border: 1px solid rgba(199, 173, 132, 0.45);
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(57, 39, 20, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    animation: taSlideUp 0.3s ease;
}

@keyframes taSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ta-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ink-muted, #6b5b3e);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: background 0.15s ease;
    z-index: 2;
}

.ta-modal__close:hover {
    background: rgba(0, 0, 0, 0.06);
}

/* Modal Header */
.ta-modal__header {
    padding: 1.75rem 2rem 1rem;
    border-bottom: 1px solid rgba(199, 173, 132, 0.25);
}

.ta-modal__title {
    margin: 0;
    font-size: 1.4rem;
    color: var(--ink-soft, #3a2e1c);
    font-weight: 800;
}

.ta-modal__subtitle {
    margin: 0.3rem 0 0.8rem;
    font-size: 0.85rem;
    color: var(--ink-muted, #6b5b3e);
    font-weight: 500;
}

/* Progress Bar */
.ta-progress {
    height: 4px;
    background: rgba(199, 173, 132, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.ta-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #C9A227, #FFE156);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* Form Steps */
.ta-step {
    padding: 1.5rem 2rem;
}

/* Field & Field Groups */
.ta-field {
    margin-bottom: 1rem;
}

.ta-field label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-soft, #3a2e1c);
    margin-bottom: 0.35rem;
}

.ta-req {
    color: #c0392b;
}

.ta-field input[type="text"],
.ta-field input[type="email"],
.ta-field input[type="tel"],
.ta-field select,
.ta-field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-size: 0.92rem;
    border: 1.5px solid rgba(199, 173, 132, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--ink-soft, #3a2e1c);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.ta-field input:focus,
.ta-field select:focus,
.ta-field textarea:focus {
    outline: none;
    border-color: #C9A227;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.ta-field textarea {
    resize: vertical;
    min-height: 80px;
}

.ta-field input[type="file"] {
    font-size: 0.85rem;
    color: var(--ink-muted, #6b5b3e);
}

.ta-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--ink-muted, #6b5b3e);
    margin-top: 0.25rem;
    opacity: 0.75;
}

/* Field Group — 2-column layout */
.ta-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

@media (max-width: 520px) {
    .ta-field-group {
        grid-template-columns: 1fr;
    }
}

/* Checkbox Card Grid */
.ta-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

@media (max-width: 520px) {
    .ta-checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ta-checkbox-card {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(199, 173, 132, 0.3);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-soft, #3a2e1c);
}

.ta-checkbox-card:hover {
    border-color: rgba(201, 162, 39, 0.5);
    background: rgba(255, 231, 10, 0.08);
}

.ta-checkbox-card:has(input:checked) {
    border-color: #C9A227;
    background: rgba(255, 231, 10, 0.18);
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.15);
    transform: translateY(-1px);
}

.ta-checkbox-card input[type="checkbox"] {
    accent-color: #C9A227;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Error Box */
.ta-error {
    margin: 0 2rem 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(192, 57, 43, 0.08);
    border: 1px solid rgba(192, 57, 43, 0.25);
    color: #922b21;
    font-size: 0.88rem;
    line-height: 1.55;
}

/* Navigation */
.ta-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem 1.5rem;
    gap: 0.75rem;
}

.ta-nav__next {
    margin-left: auto;
}

/* OTP Section */
.ta-otp-section {
    text-align: center;
    padding: 1rem 0 0.5rem;
}

.ta-otp-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.ta-otp-section h3 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
    color: var(--ink-soft, #3a2e1c);
}

.ta-otp-section p {
    margin: 0 0 1.5rem;
    color: var(--ink-muted, #6b5b3e);
    font-size: 0.92rem;
    line-height: 1.5;
}

.ta-otp-inputs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.ta-otp-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    border: 2px solid rgba(199, 173, 132, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink-soft, #3a2e1c);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ta-otp-digit:focus {
    outline: none;
    border-color: #C9A227;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.ta-otp-timer {
    font-size: 0.82rem;
    color: var(--ink-muted, #6b5b3e);
    margin-bottom: 0.5rem;
}

.ta-resend-btn {
    background: none;
    border: none;
    color: #C9A227;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.88rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: background 0.15s;
}

.ta-resend-btn:hover:not(:disabled) {
    background: rgba(201, 162, 39, 0.1);
}

.ta-resend-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Success Section */
.ta-success-section {
    text-align: center;
    padding: 2rem 0 1rem;
}

.ta-success-check {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
}

.ta-checkmark {
    width: 72px;
    height: 72px;
    border-radius: 50%;
}

.ta-checkmark circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #2e7d32;
    fill: none;
    animation: taStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.ta-checkmark path {
    stroke: #2e7d32;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    animation: taStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes taStroke {
    100% {
        stroke-dashoffset: 0;
    }
}

.ta-success-section h3 {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
    color: #2e7d32;
}

.ta-success-section>p {
    margin: 0 0 0.5rem;
    color: var(--ink-muted, #6b5b3e);
    font-size: 0.95rem;
}

.ta-success-note {
    margin: 0.5rem 0 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(46, 125, 50, 0.08);
    border: 1px solid rgba(46, 125, 50, 0.2);
    font-size: 0.88rem;
    color: var(--ink-soft, #3a2e1c);
}

/* Modal responsive */
@media (max-width: 640px) {
    .ta-modal {
        max-width: 100%;
        border-radius: 18px;
        max-height: 95vh;
    }

    .ta-modal__header {
        padding: 1.25rem 1.25rem 0.75rem;
    }

    .ta-step {
        padding: 1.25rem 1.25rem;
    }

    .ta-nav {
        padding: 0.75rem 1.25rem 1.25rem;
    }

    .ta-error {
        margin: 0 1.25rem 1rem;
    }

    .ta-otp-digit {
        width: 42px;
        height: 50px;
        font-size: 1.2rem;
    }

    .ta-otp-inputs {
        gap: 0.35rem;
    }
}