/* RCA First Order Popup — rca-popup.css */

/* Overlay */
.rca-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    animation: rca-fade-in 0.25s ease;
}

@keyframes rca-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Box */
.rca-popup-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 2.5rem 2rem 2rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    animation: rca-slide-up 0.3s ease;
    text-align: center;
}

@keyframes rca-slide-up {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Close button */
.rca-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
}
.rca-popup-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Badge */
.rca-popup-badge {
    display: inline-block;
    background: #e1f5ee;
    color: #085041;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 1rem;
}

/* Heading */
.rca-popup-box h2 {
    font-size: 26px;
    font-weight: 700;
    color: #111;
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

/* Subtext */
.rca-popup-sub {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

/* Form wrapper — tighten up Forminator's default spacing */
.rca-popup-form-wrap .forminator-ui {
    text-align: left;
}
.rca-popup-form-wrap .forminator-row {
    margin-bottom: 0.75rem !important;
}
.rca-popup-form-wrap .forminator-field input {
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    font-size: 14px !important;
    padding: 10px 14px !important;
}
.rca-popup-form-wrap .forminator-button-submit {
    width: 100% !important;
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 12px !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}
.rca-popup-form-wrap .forminator-button-submit:hover {
    background: #333 !important;
}

/* Skip link */
.rca-popup-skip {
    margin: 1rem 0 0;
    font-size: 12px;
}
.rca-popup-skip a {
    color: #aaa;
    text-decoration: underline;
}
.rca-popup-skip a:hover {
    color: #666;
}

/* Success icon */
.rca-popup-success-icon {
    width: 52px;
    height: 52px;
    background: #e1f5ee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}
.rca-popup-success-icon svg {
    width: 24px;
    height: 24px;
    stroke: #0f6e56;
}

/* Coupon reveal */
.rca-popup-coupon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f5f5f3;
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin: 0.5rem 0 1rem;
}
.rca-popup-coupon-code {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #111;
    font-family: monospace;
}
.rca-popup-copy-btn {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.rca-popup-copy-btn:hover {
    background: #333;
}
.rca-popup-copy-btn.copied {
    background: #1d9e75;
}

/* Coupon note */
.rca-popup-coupon-note {
    font-size: 11px;
    color: #aaa;
    margin: 0 0 1.5rem;
}

/* CTA button */
.rca-popup-cta {
    display: inline-block;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.rca-popup-cta:hover {
    background: #333;
}

/* Mobile */
@media (max-width: 520px) {
    .rca-popup-box {
        padding: 2rem 1.25rem 1.5rem;
        border-radius: 10px;
    }
    .rca-popup-box h2 {
        font-size: 22px;
    }
    .rca-popup-coupon-code {
        font-size: 22px;
    }
}
