/* Loader */
.page-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    z-index: 9999;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(255, 255, 255, 0.14);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

:root {
    --thanks-primary: #2563eb;
    --thanks-secondary: #1d4ed8;
    --thanks-accent: #00d4ff;
    --thanks-success: #22c55e;
    --thanks-ink: #0f172a;
    --thanks-ink-soft: #334155;
    --thanks-surface: #f4f8ff;
    --thanks-border: rgba(37, 99, 235, 0.16);
    --thanks-shadow: 0 16px 42px rgba(15, 23, 42, 0.1);
    --thanks-shadow-hover: 0 24px 56px rgba(15, 23, 42, 0.16);
}

#main-content {
    background: radial-gradient(circle at 15% -10%, rgba(0, 212, 255, 0.09), transparent 43%),
        radial-gradient(circle at 92% 22%, rgba(37, 99, 235, 0.1), transparent 36%),
        linear-gradient(180deg, #f8fbff 0%, var(--thanks-surface) 100%);
}

.hero-thanks {
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #f8fafc;
    padding: clamp(94px, 14vw, 138px) 0 clamp(72px, 9.5vw, 106px);
    background-image: url("https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=1920&h=1080&q=80");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-thanks::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(122deg, rgba(8, 15, 31, 0.9) 0%, rgba(17, 34, 68, 0.84) 52%, rgba(10, 82, 121, 0.72) 100%);
    z-index: 1;
}

.hero-thanks::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 22% 16%, rgba(0, 212, 255, 0.18) 0%, transparent 46%),
        radial-gradient(circle at 86% 72%, rgba(34, 197, 94, 0.2) 0%, transparent 48%);
    z-index: 1;
}

.hero-thanks .container {
    position: relative;
    z-index: 2;
}

.hero-thanks h1 {
    font-size: clamp(2.35rem, 5.8vw, 4.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1rem;
    text-wrap: balance;
}

.hero-thanks .lead {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(248, 250, 252, 0.92);
    font-size: clamp(1.03rem, 2vw, 1.24rem);
}

.hero-thanks .hero-icon {
    font-size: clamp(3.3rem, 7.6vw, 5.3rem);
    margin-bottom: 1.4rem;
    color: rgba(248, 250, 252, 0.9);
    filter: drop-shadow(0 8px 18px rgba(8, 15, 31, 0.45));
    animation: floatCheck 2.8s ease-in-out infinite;
}

@keyframes floatCheck {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.thanks-section {
    padding: clamp(56px, 7vw, 84px) 0 0;
}

.thanks-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(247, 251, 255, 0.98) 100%);
    border: 1px solid var(--thanks-border);
    border-radius: 22px;
    padding: clamp(1.65rem, 4.2vw, 3.1rem);
    box-shadow: var(--thanks-shadow);
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.thanks-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 86% 14%, rgba(0, 212, 255, 0.12), transparent 56%),
        radial-gradient(circle at 12% 88%, rgba(37, 99, 235, 0.1), transparent 60%);
    pointer-events: none;
}

.thanks-card > * {
    position: relative;
    z-index: 1;
}

.thanks-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--thanks-shadow-hover);
}

.thanks-card h2 {
    color: var(--thanks-ink);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.thanks-card .lead {
    color: var(--thanks-ink-soft);
}

.thanks-card p {
    color: #475569;
}

#request-number {
    font-weight: 800;
    color: var(--thanks-secondary);
    letter-spacing: 0.03em;
}

.next-steps {
    padding: clamp(56px, 7vw, 84px) 0 0;
}

.next-steps h2 {
    color: var(--thanks-ink);
    font-weight: 800;
    letter-spacing: -0.024em;
}

.next-steps .lead {
    color: var(--thanks-ink-soft);
}

.step-card {
    position: relative;
    height: 100%;
    text-align: center;
    border-radius: 20px;
    border: 1px solid var(--thanks-border);
    background: #ffffff;
    box-shadow: var(--thanks-shadow);
    padding: 1.6rem 1.1rem 1.3rem;
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: var(--thanks-shadow-hover);
}

.step-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 0.95rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.58rem;
    color: #f8fafc;
    background: linear-gradient(135deg, var(--thanks-primary) 0%, #0ea5e9 100%);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
}

.step-number {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    font-size: 0.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
}

.step-card h4 {
    color: var(--thanks-ink);
    font-weight: 700;
    margin-bottom: 0.68rem;
    font-size: 1.1rem;
}

.step-card p {
    color: #475569;
    margin: 0;
    line-height: 1.45;
}

.social-proof {
    padding: clamp(52px, 6.5vw, 78px) 0 0;
    background: transparent;
}

.stat-item {
    border-radius: 18px;
    border: 1px solid var(--thanks-border);
    background: #ffffff;
    box-shadow: var(--thanks-shadow);
    text-align: center;
    padding: 1.1rem 0.7rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--thanks-shadow-hover);
}

.stat-number {
    display: block;
    color: var(--thanks-secondary);
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.stat-label {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.93rem;
    font-weight: 500;
}

.contact-cta {
    position: relative;
    overflow: hidden;
    margin-top: clamp(1.8rem, 4vw, 2.8rem);
    background: linear-gradient(130deg, #0f172a 0%, #1d4ed8 56%, #0891b2 100%);
    color: #f8fafc;
    padding: clamp(2.2rem, 5.5vw, 3.8rem) 0;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
}

.contact-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 24%, rgba(0, 212, 255, 0.24) 0%, transparent 50%),
        radial-gradient(circle at 82% 78%, rgba(125, 211, 252, 0.2) 0%, transparent 45%);
    pointer-events: none;
}

.contact-cta .container {
    position: relative;
    z-index: 1;
}

.contact-cta h2 {
    font-size: clamp(1.95rem, 4.6vw, 2.75rem);
    margin-bottom: 0.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.contact-cta .lead {
    color: rgba(248, 250, 252, 0.9);
}

.btn-thanks,
.btn-outline-thanks {
    display: inline-block;
    padding: 0.86rem 1.18rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.btn-thanks {
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid rgba(248, 250, 252, 0.4);
}

.btn-thanks:hover {
    color: #0f172a;
    transform: translateY(-2px);
    filter: brightness(1.02);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.22);
}

.btn-outline-thanks {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(248, 250, 252, 0.42);
}

.btn-outline-thanks:hover {
    color: #0f172a;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.22);
}

@media (max-width: 767.98px) {
    .hero-thanks {
        padding-top: 88px;
        padding-bottom: 68px;
    }

    .thanks-card {
        border-radius: 18px;
        padding: 1.5rem 1.2rem;
    }

    .step-card {
        border-radius: 16px;
    }

    .step-card h4 {
        font-size: 1rem;
    }

    .btn-thanks,
    .btn-outline-thanks {
        width: 100%;
        margin-bottom: 0.6rem;
    }

    .contact-cta .me-3 {
        margin-right: 0 !important;
    }
}
