/**
 * Special Offer Popup — July 2026 Website Special
 */

/* ── Overlay ── */
.special-offer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.special-offer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ── Modal ── */
.special-offer-modal {
    background: #fff;
    border-radius: 14px;
    max-width: 560px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(.96);
    transition: transform .25s cubic-bezier(.34,1.56,.64,1);
    padding: 2rem 2rem 1.5rem;
}
.special-offer-overlay.active .special-offer-modal {
    transform: scale(1);
}

/* thin scrollbar */
.special-offer-modal::-webkit-scrollbar { width: 5px; }
.special-offer-modal::-webkit-scrollbar-thumb { background: #cc1616; border-radius: 3px; }

/* ── Close button ── */
.special-offer-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: #f5f5f5;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    color: #333;
    font-size: 1.2rem;
    line-height: 1;
    transition: background .2s, transform .2s;
}
.special-offer-close:hover,
.special-offer-close:focus-visible {
    background: #e0e0e0;
    transform: rotate(90deg);
    outline: none;
}

/* ── Badge ── */
.special-offer-badge {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #cc1616;
    margin-bottom: .5rem;
}

/* ── Title ── */
.special-offer-title {
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    font-weight: 700;
    margin: 0 0 .5rem;
    color: #1a1a1a;
    font-family: 'Raleway', sans-serif;
    line-height: 1.3;
}

/* ── Subtitle / supporting text ── */
.special-offer-subtitle {
    font-size: .875rem;
    line-height: 1.55;
    color: #555;
    margin: 0 0 .75rem;
}

/* ── Benefits ── */
.special-offer-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 .5rem;
}
.special-offer-benefits li {
    padding: .3rem 0 .3rem 1.4rem;
    position: relative;
    color: #333;
    font-size: .85rem;
    line-height: 1.45;
}
.special-offer-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #cc1616;
    font-weight: 700;
}

/* ── Pricing note ── */
.special-offer-pricing {
    font-size: .75rem;
    color: #777;
    margin: 0 0 1rem;
    line-height: 1.4;
}

/* ── Form ── */
.special-offer-form .so-field {
    margin-bottom: .85rem;
}
.special-offer-form .so-field label {
    display: block;
    margin-bottom: .25rem;
    font-weight: 600;
    color: #333;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.special-offer-form .so-field .required { color: #cc1616; }

.special-offer-form .so-field input {
    width: 100%;
    padding: .65rem .75rem;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: .9rem;
    font-family: inherit;
    color: #333;
    background: #fafafa;
    transition: border-color .2s;
    box-sizing: border-box;
}
.special-offer-form .so-field input:focus {
    outline: none;
    border-color: #cc1616;
    background: #fff;
}
.special-offer-form .so-field input::placeholder {
    color: #aaa;
    font-weight: 300;
}

/* Validation message */
.so-field-error {
    font-size: .72rem;
    color: #cc1616;
    margin-top: .2rem;
    min-height: 1em;
}

/* ── Feedback ── */
.form-feedback {
    margin: .5rem 0 0;
    min-height: 0;
}
.form-feedback .alert {
    padding: .7rem .85rem;
    border-radius: 6px;
    font-size: .82rem;
    line-height: 1.45;
}
.form-feedback .alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.form-feedback .alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ── CTA Button ── */
.special-offer-btn {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    padding: .8rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    border: none;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: .25rem;
    transition: background .2s, box-shadow .2s;
    min-height: 44px;
}
.special-offer-btn:hover:not(:disabled),
.special-offer-btn:focus-visible:not(:disabled) {
    background: #cc1616;
    box-shadow: 0 4px 14px rgba(204, 22, 22, .3);
    outline: none;
}
.special-offer-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: so-spin .6s linear infinite;
}
@keyframes so-spin { to { transform: rotate(360deg); } }

/* ── Success state ── */
.special-offer-success {
    text-align: center;
    padding: 1.5rem 0;
}
.special-offer-success h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 .6rem;
}
.special-offer-success p {
    font-size: .88rem;
    color: #555;
    line-height: 1.55;
    margin: 0 0 1.25rem;
}
.special-offer-success .so-close-btn {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    padding: .65rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    transition: background .2s;
    min-height: 44px;
}
.special-offer-success .so-close-btn:hover,
.special-offer-success .so-close-btn:focus-visible {
    background: #cc1616;
    outline: none;
}

/* ── Footer ── */
.special-offer-footer {
    margin-top: .75rem;
    text-align: center;
}
.special-offer-footer p {
    font-size: .68rem;
    color: #999;
    line-height: 1.4;
    margin: 0 0 .15rem;
}

/* ── Body scroll lock ── */
body.special-offer-open {
    overflow: hidden;
}

/* ── Reopen button ── */
.special-offer-reopen-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    animation: so-slideUp .4s ease forwards;
}
@keyframes so-slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.special-offer-reopen-button {
    background: linear-gradient(135deg, #cc1616, #e82d2d);
    color: #fff;
    border: none;
    padding: .85rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(204, 22, 22, .35);
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: transform .2s, box-shadow .2s;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.special-offer-reopen-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(204, 22, 22, .45);
}
body.special-offer-open .special-offer-reopen-btn {
    display: none !important;
}

/* ──────── Responsive ──────── */

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .special-offer-modal {
        max-width: 84vw;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .special-offer-overlay { padding: .5rem; }
    .special-offer-modal {
        max-width: 92vw;
        max-height: 90vh;
        padding: 1.5rem 1.25rem 1.25rem;
        border-radius: 10px;
    }
    .special-offer-title { font-size: 1.2rem; }
    .special-offer-subtitle { font-size: .82rem; }
    .special-offer-benefits li { font-size: .8rem; }
    .special-offer-form .so-field input { min-height: 44px; font-size: .88rem; }
    .special-offer-btn { min-height: 46px; font-size: .74rem; }
    .special-offer-close { width: 38px; height: 38px; font-size: 1.3rem; }
    .special-offer-reopen-btn { bottom: 1.25rem; right: 1.25rem; }
    .special-offer-reopen-button span { display: none; }
    .special-offer-reopen-button i { font-size: 1.4rem; margin: 0; }
}
