/* ===========================================
   Thank You Page — CarAssure
   =========================================== */

/* ===========================================
   HERO — celebratory success state
   =========================================== */
.ty-hero {
    background-color: var(--color-primary);
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}

.ty-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 204, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 204, 0, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.ty-hero-inner {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.ty-success-icon {
    width: 84px;
    height: 84px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    color: var(--color-primary);
    box-shadow: 0 8px 32px rgba(255, 204, 0, 0.3);
    animation: ty-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes ty-pop {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.ty-heading {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.15;
    margin: 0 0 16px;
}

.ty-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--color-white);
    line-height: 1.7;
    margin: 0;
    opacity: 0.95;
}

/* ===========================================
   NEXT STEPS
   =========================================== */
.ty-next {
    background-color: var(--color-white);
}

.ty-next-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 980px;
    margin: 0 auto;
}

.ty-next-card {
    background: #f7f8fc;
    border-radius: 16px;
    padding: 32px 28px;
    border: 1.5px solid rgba(0, 22, 57, 0.07);
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
}

.ty-next-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 22, 57, 0.08);
}

.ty-next-num {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
    margin: 0 0 16px;
    -webkit-text-stroke: 1.5px var(--color-primary);
}

.ty-next-card p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
}

/* ===========================================
   BOTTOM CTA CARDS
   =========================================== */
.ty-cta {
    background-color: #f7f8fc;
}

.ty-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.ty-cta-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 32px 28px;
    border: 1.5px solid rgba(0, 22, 57, 0.07);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.25s, box-shadow 0.25s;
}

.ty-cta-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 22, 57, 0.08);
}

.ty-cta-icon {
    width: 52px;
    height: 52px;
    background: var(--color-secondary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.ty-cta-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.3;
}

.ty-cta-card p {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.ty-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
    margin-top: auto;
}

.ty-cta-link:hover {
    gap: 10px;
}

.ty-back-home {
    text-align: center;
}

/* ===========================================
   RESPONSIVE — tablet ≤1023px
   =========================================== */
@media (max-width: 1023px) {
    .ty-next-grid,
    .ty-cta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ty-cta-grid > :last-child {
        grid-column: 1 / -1;
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }
}

/* ===========================================
   RESPONSIVE — mobile ≤599px
   =========================================== */
@media (max-width: 599px) {
    .ty-hero {
        padding: 60px 0 70px;
    }

    .ty-success-icon {
        width: 72px;
        height: 72px;
    }

    .ty-next-grid,
    .ty-cta-grid {
        grid-template-columns: 1fr;
    }

    .ty-cta-grid > :last-child {
        max-width: 100%;
    }

    .ty-back-home .btn-primary {
        width: 100%;
        justify-content: center;
    }
}
