.promoOverlay .error {
    color: #ffbb8c;
    font-size: 0.875em;
    padding-top: 5px;
}
/* updatd */
.promoOverlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 8, 22, 0.7);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 18px;
    z-index: 999;
}

.promo-modal {
    width: min(100%, 560px);
    background: linear-gradient(
        165deg,
        rgba(10, 28, 52, 0.92) 0%,
        rgba(15, 42, 74, 0.9) 45%,
        rgba(19, 68, 116, 0.88) 100%
    );
    color: #ffffff;
    position: relative;
    padding: 38px 34px 30px;
    border: 1px solid rgba(148, 197, 255, 0.28);
    border-radius: 20px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.promo-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.11),
        transparent 30%,
        transparent 70%,
        rgba(255, 255, 255, 0.06)
    );
    pointer-events: none;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #eff6ff;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.brand-tag {
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 2px;
    color: #bde7ff;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 700;
}

.main-heading {
    text-align: center;
    font-size: clamp(2.2rem, 7vw, 4rem);
    line-height: 1;
    font-weight: 800;
    margin: 6px 0 18px;
    letter-spacing: 0.3px;
    text-shadow: 0 6px 24px rgba(4, 14, 28, 0.55);
}

.deadline-strip {
    margin: 0 auto 18px;
    background: linear-gradient(90deg, #ef4444, #f97316);
    color: #fff;
    width: fit-content;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: clamp(0.95rem, 2.2vw, 1.25rem);
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}

.subtext {
    text-align: center;
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    font-weight: 500;
    margin: 12px 0 22px;
    color: #dbedff;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.form-row input {
    width: 100%;
    border: 1px solid rgba(191, 219, 254, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    padding: 15px 13px;
    font-size: 1rem;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-row input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

.cta-btn {
    width: 100%;
    border: none;
    background: linear-gradient(90deg, #4ccaf0c8, #8a5bf5);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.9px;
    font-size: 1rem;
    padding: 15px 12px;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(20, 184, 166, 0.32);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 35px rgba(14, 165, 233, 0.4);
}

.success-state {
    display: none;
    margin-top: 4px;
    padding: 10px 6px 2px;
    text-align: center;
    animation: successIn 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.success-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: linear-gradient(140deg, rgba(34, 197, 94, 0.95), rgba(16, 185, 129, 0.92));
    box-shadow:
        0 12px 26px rgba(22, 163, 74, 0.42),
        inset 0 2px 5px rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
}

.success-icon svg {
    width: 30px;
    height: 30px;
    stroke: #ffffff;
    stroke-width: 2.7;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.success-headline {
    font-size: clamp(1.45rem, 3vw, 2.05rem);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: 0.2px;
    color: #f8fbff;
    margin-bottom: 6px;
}

.success-subline {
    margin: 0 auto 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.55px;
    color: #d9f5ff;
}

.subline-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #67e8f9;
    box-shadow: 0 0 0 5px rgba(103, 232, 249, 0.15);
    flex: 0 0 8px;
}

.subline-text {
    line-height: 1;
}

.success-code-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 350px;
    margin: 0 auto 14px;
    padding: 10px 10px 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(125, 211, 252, 0.45);
    background: linear-gradient(90deg, rgb(139 64 255), rgb(46 211 255 / 80%));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.code-chip {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #c8f3ff;
    font-family: "Segoe UI", Arial, sans-serif;
}

.copy-code-btn {
    border: 1px solid rgba(147, 197, 253, 0.5);
    background: linear-gradient(90deg, rgba(15, 42, 74, 0.9), rgba(19, 68, 116, 0.88));
    color: #eff6ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    border-radius: 9px;
    padding: 7px 11px;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.copy-code-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.52), rgba(139, 92, 246, 0.5));
}

.success-note {
    margin: 2px auto 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: #dbeafe;
    text-align: left;
}

.note-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: #38bdf8;
    filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.35));
}

.note-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.note-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    color: #93c5fd;
    font-weight: 700;
    line-height: 1.2;
}

.note-detail {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #dbeafe;
    font-weight: 600;
}

.promo-modal.success-mode {
    padding-top: 44px;
}

@keyframes successIn {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 650px) {
    .promo-modal {
        padding: 30px 18px 20px;
        border-radius: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .close-btn {
        right: 8px;
        top: 8px;
    }
    .success-state {
        padding: 6px 2px 0;
    }

    .success-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 12px;
    }

    .success-code-panel {
        padding: 9px;
        gap: 8px;
    }

    .code-chip {
        font-size: 0.92rem;
    }

    .copy-code-btn {
        font-size: 0.72rem;
        padding: 7px 8px;
    }

    .success-note {
        gap: 6px;
        padding: 9px 10px;
    }

    .note-detail {
        font-size: 0.88rem;
    }
}
