/* Website form success dialog (public/website/js/gde-success.js): quote, free trial, contact */
.gs-lock { overflow: hidden; }

.gs-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(6, 20, 12, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.22s ease;
}
.gs-backdrop.gs-open { opacity: 1; }

.gs-card {
    position: relative;
    width: min(460px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(4, 20, 10, 0.35), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
    font-family: "Onest", "Onest Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #10251a;
    transform: translateY(18px) scale(0.96);
    transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.25, 1.2);
}
.gs-open .gs-card { transform: none; }

/* auto-close progress (5 s, gde-success.js AUTO_CLOSE_MS) */
.gs-timer { position: absolute; left: 0; right: 0; top: 0; z-index: 4; height: 4px; background: rgba(255, 255, 255, 0.12); }
.gs-timer i { display: block; height: 100%; background: #7be05a; transform-origin: left center; transform: scaleX(1); }
.gs-open .gs-timer i { animation-name: gs-countdown; animation-timing-function: linear; animation-fill-mode: forwards; }
.gs-paused .gs-timer i { animation-play-state: paused; }
@keyframes gs-countdown { to { transform: scaleX(0); } }

.gs-x {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
}
.gs-x:hover { background: rgba(255, 255, 255, 0.24); }
.gs-x svg { width: 16px; height: 16px; }
.gs-x:focus-visible, .gs-btn:focus-visible { outline: 3px solid #7be05a; outline-offset: 2px; }

/* hero */
.gs-hero {
    position: relative;
    overflow: hidden;
    padding: 34px 28px 26px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(123, 224, 90, 0.28) 0%, rgba(123, 224, 90, 0) 60%),
        linear-gradient(160deg, #123222 0%, #0b2016 100%);
}
.gs-hero::after { /* soft rings like the site hero */
    content: "";
    position: absolute;
    inset: -40% -20% auto;
    height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.02), 0 0 0 80px rgba(255, 255, 255, 0.015);
    pointer-events: none;
}
.gs-glow {
    position: absolute;
    left: 50%;
    top: 58px;
    width: 140px;
    height: 140px;
    margin-left: -70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 224, 90, 0.45), rgba(123, 224, 90, 0) 70%);
    filter: blur(6px);
    animation: gs-pulse 2.4s ease-in-out infinite;
}

.gs-badge {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    margin: 0 auto;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #7be05a;
    box-shadow: 0 10px 30px rgba(123, 224, 90, 0.45), 0 0 0 8px rgba(123, 224, 90, 0.16);
    transform: scale(0.4);
    opacity: 0;
}
.gs-open .gs-badge { animation: gs-pop 0.5s 0.1s cubic-bezier(0.2, 0.9, 0.25, 1.4) forwards; }
.gs-badge svg { width: 52px; height: 52px; }
.gs-ring { fill: none; stroke: rgba(11, 32, 22, 0.18); stroke-width: 2; }
.gs-tick {
    fill: none;
    stroke: #0b2016;
    stroke-width: 4.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
}
.gs-open .gs-tick { animation: gs-draw 0.45s 0.45s ease-out forwards; }

/* confetti burst from the badge */
.gs-confetti { position: absolute; left: 50%; top: 76px; width: 0; height: 0; z-index: 1; }
.gs-confetti i {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--s);
    height: calc(var(--s) * 0.45);
    border-radius: 2px;
    background: var(--c);
    opacity: 0;
}
.gs-open .gs-confetti i { animation: gs-burst var(--t) 0.35s cubic-bezier(0.1, 0.7, 0.3, 1) forwards; }

.gs-eyebrow {
    position: relative;
    z-index: 2;
    display: inline-flex;
    margin: 18px 0 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(123, 224, 90, 0.14);
    color: #a9ef8e;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.gs-title { position: relative; z-index: 2; margin: 0 0 6px; color: #fff; font-family: inherit; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; text-transform: none; }
.gs-lead { position: relative; z-index: 2; margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 15px; line-height: 1.5; }

/* body */
.gs-body { padding: 22px 26px 26px; }
.gs-next { margin: 0 0 12px; color: #5a6b61; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.gs-steps { position: relative; margin: 0 0 16px; padding: 0; list-style: none; }
.gs-steps::before { /* the line that joins the step numbers */
    content: "";
    position: absolute;
    left: 15px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: linear-gradient(#7be05a, #e3efe0);
}
.gs-steps li {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 6px 0;
    opacity: 0;
    transform: translateY(6px);
}
.gs-open .gs-steps li { animation: gs-rise 0.35s calc(0.55s + var(--i) * 0.09s) ease-out forwards; }
.gs-step-num {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eef9ea;
    border: 2px solid #7be05a;
    color: #1d5a1a;
    font-size: 13px;
    font-weight: 700;
}
.gs-steps strong { display: block; font-size: 15px; font-weight: 600; color: #10251a; text-transform: none; }
.gs-steps small { display: block; margin-top: 2px; font-size: 13.5px; color: #5a6b61; line-height: 1.45; }

.gs-mail {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0;
    padding: 11px 14px;
    border-radius: 12px;
    background: #f4f8f2;
    color: #3d5146;
    font-size: 13.5px;
    word-break: break-word;
}
.gs-mail svg { flex: none; width: 18px; height: 18px; color: #3c8d2f; }
.gs-mail span { min-width: 0; }
.gs-mail strong { color: #10251a; font-weight: 600; overflow-wrap: anywhere; }

.gs-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gs-btn {
    flex: 1 1 140px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.gs-btn--primary { border: 0; background: #0f2a1c; color: #fff; box-shadow: 0 8px 20px rgba(15, 42, 28, 0.25); }
.gs-btn--primary:hover { background: #163a27; transform: translateY(-1px); }
.gs-btn--ghost { border: 1.5px solid #cfe3c8; background: #fff; color: #1d5a1a; }
.gs-btn--ghost:hover { border-color: #7be05a; background: #f4fbf0; color: #1d5a1a; }

.gs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes gs-pop { to { transform: scale(1); opacity: 1; } }
@keyframes gs-draw { to { stroke-dashoffset: 0; } }
@keyframes gs-rise { to { opacity: 1; transform: none; } }
@keyframes gs-pulse { 0%, 100% { transform: scale(0.9); opacity: 0.7; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes gs-burst {
    0% { opacity: 1; transform: rotate(var(--a)) translateX(0) rotate(0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) rotate(var(--r)); }
}

@media (max-width: 480px) {
    .gs-backdrop { padding: 12px; align-items: end; }
    .gs-card { border-radius: 22px; }
    .gs-hero { padding: 30px 20px 22px; }
    .gs-title { font-size: 22px; }
    .gs-body { padding: 20px 18px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .gs-backdrop, .gs-card { transition: none; }
    .gs-card { transform: none; }
    .gs-badge, .gs-steps li { opacity: 1; transform: none; animation: none !important; }
    .gs-tick { stroke-dashoffset: 0; animation: none !important; }
    .gs-glow, .gs-confetti { display: none; }
    .gs-open .gs-timer i { animation-name: none; transform: scaleX(1); }
}
