/* --- THANK YOU PAGE WIDGET STYLES --- */
:root {
    --ifag-red: #d5263d;
    --ifag-green: #22c55e;
    --ifag-bg-light: #f8fafc;
    --ifag-text-dark: #0f172a;
    --ifag-text-muted: #64748b;
    --ifag-border: #e2e8f0;
    --ifag-font-h: 'Sora', sans-serif;
    --ifag-font-b: 'Raleway', sans-serif;
}

.ifag-thankyou-wrapper {
    font-family: var(--ifag-font-b);
    color: var(--ifag-text-dark);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem;
    border-radius: 20px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ifag-thankyou-inner {
    max-width: 800px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* --- BACKGROUND EFFECTS (LIGHT MODE) --- */
.ifag-bg-grid {
    position: absolute; inset: 0; opacity: 0.4; pointer-events: none;
    background-image: 
        repeating-linear-gradient(0deg, var(--ifag-border) 0, var(--ifag-border) 1px, transparent 1px, transparent 48px),
        repeating-linear-gradient(90deg, var(--ifag-border) 0, var(--ifag-border) 1px, transparent 1px, transparent 48px);
}

.ifag-bg-orb {
    position: absolute; border-radius: 50%; pointer-events: none; filter: blur(100px);
    z-index: 1;
}
.ifag-bg-orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(213,38,61,0.05) 0%, transparent 70%);
    top: -200px; right: -100px;
    animation: ifag-float1 8s ease-in-out infinite;
}
.ifag-bg-orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(34,197,94,0.05) 0%, transparent 70%);
    bottom: -100px; left: -100px;
    animation: ifag-float2 10s ease-in-out infinite;
}

@keyframes ifag-float1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 40px); } }
@keyframes ifag-float2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, -30px); } }

/* --- SUCCESS ICON --- */
.success-ring-wrap {
    position: relative;
    width: 100px; height: 100px;
    margin: 0 auto 2rem;
}
.success-ring-wrap svg {
    position: absolute; inset: 0; width: 100%; height: 100%;
}
.ring-bg { fill: none; stroke: rgba(34,197,94,0.1); stroke-width: 3; }
.ring-progress {
    fill: none; stroke: var(--ifag-green); stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transform-origin: center;
    transform: rotate(-90deg);
    animation: ringFill 1.2s cubic-bezier(0.65,0,0.35,1) 0.3s forwards;
}
@keyframes ringFill { to { stroke-dashoffset: 0; } }
.success-icon-inner {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(34,197,94,0.05); border-radius: 50%;
    margin: 8px;
}
.success-icon-inner i {
    color: var(--ifag-green); font-size: 1.8rem;
    animation: iconPop 0.5s cubic-bezier(0.34,1.56,0.64,1) 1.2s both;
}
@keyframes iconPop { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }

/* --- TITLES --- */
.thankyou-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2);
    color: #16a34a; font-family: var(--ifag-font-h); font-size: 0.7rem;
    font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 0.4rem 1rem; border-radius: 20px;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s ease 0.5s both;
}

.thankyou-title {
    font-family: var(--ifag-font-h); font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900; color: var(--ifag-text-dark); line-height: 1.1;
    letter-spacing: -1px; margin-bottom: 1.25rem;
    animation: fadeUp 0.6s ease 0.6s both;
}
.thankyou-title .accent { color: var(--ifag-red); }
.thankyou-title .green { color: var(--ifag-green); }

.thankyou-desc {
    font-size: 1.05rem; color: var(--ifag-text-muted);
    line-height: 1.7; max-width: 600px; margin: 0 auto 2.5rem;
    animation: fadeUp 0.6s ease 0.7s both;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- STEPS --- */
.next-steps-container {
    background: white;
    border: 1px solid var(--ifag-border);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    animation: fadeUp 0.6s ease 0.8s both;
}
.next-steps-title {
    font-family: var(--ifag-font-h); font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--ifag-text-muted); margin-bottom: 2rem;
}
.steps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.step-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 1.5rem 1rem;
    background: #fcfcfc; border: 1px solid #f0f0f0;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}
.step-card:hover { transform: translateY(-5px); border-color: var(--ifag-red); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

.step-num-badge {
    width: 32px; height: 32px; background: rgba(213,38,61,0.08);
    border: 1px solid rgba(213,38,61,0.15); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ifag-font-h); font-size: 0.75rem; font-weight: 800;
    color: var(--ifag-red); margin-bottom: 0.75rem;
}
.step-icon-inner { color: var(--ifag-text-muted); font-size: 1.2rem; margin-bottom: 0.75rem; }
.step-card h4 { font-family: var(--ifag-font-h); font-size: 0.85rem; font-weight: 700; color: var(--ifag-text-dark); margin-bottom: 0.5rem; }
.step-card p { font-size: 0.75rem; color: var(--ifag-text-muted); line-height: 1.5; }

/* --- BUTTONS --- */
.action-group {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    margin-bottom: 2rem;
    animation: fadeUp 0.6s ease 0.9s both;
}
.btn-whatsapp {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: #25D366; color: white;
    font-family: var(--ifag-font-h); font-size: 0.9rem; font-weight: 700;
    padding: 0.85rem 1.75rem; border-radius: 8px; text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    transition: all 0.2s;
}
.btn-whatsapp:hover { background: #1db854; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3); color: white !important; }

.btn-phone {
    display: inline-flex; align-items: center; gap: 0.6rem;
    border: 2px solid var(--ifag-border); color: var(--ifag-text-dark);
    font-family: var(--ifag-font-h); font-size: 0.9rem; font-weight: 700;
    padding: 0.85rem 1.75rem; border-radius: 8px; text-decoration: none;
    transition: all 0.2s;
}
.btn-phone:hover { border-color: var(--ifag-text-dark); background: var(--ifag-text-dark); color: white !important; }

.btn-back-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--ifag-text-muted); font-size: 0.85rem;
    font-family: var(--ifag-font-h); font-weight: 600; text-decoration: none;
    transition: color 0.2s;
    animation: fadeUp 0.6s ease 1s both;
}
.btn-back-link:hover { color: var(--ifag-red); }

/* --- SOCIAL --- */
.social-proof-row {
    display: flex; align-items: center; justify-content: center; gap: 2.5rem;
    margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--ifag-border);
    flex-wrap: wrap;
    animation: fadeUp 0.6s ease 1.1s both;
}
.social-proof-item {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.8rem; color: var(--ifag-text-muted);
}
.social-proof-item i { color: var(--ifag-red); font-size: 0.9rem; }
.social-proof-item strong { color: var(--ifag-text-dark); font-family: var(--ifag-font-h); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .ifag-thankyou-wrapper { padding: 4rem 1.5rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .action-group { flex-direction: column; }
    .btn-whatsapp, .btn-phone { width: 100%; justify-content: center; }
    .social-proof-row { gap: 1.5rem; }
}
