/* ============================================
   Popup: Prezentare gratuită / Consumabile
   Design modern, elegant, brand MTC
   ============================================ */

.offert-background {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    animation: offertFadeIn 0.35s ease;
}

@keyframes offertFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.offert-box {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 28px;
    padding: 48px 40px 40px;
    text-align: center;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    animation: offertSlideUp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes offertSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close button */
.offert-box .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.06);
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.offert-box .close-btn:hover {
    background: rgba(15, 23, 42, 0.1);
    color: #0f172a;
    transform: rotate(90deg);
}

/* Icon / visual */
.offert-hero {
    width: 88px;
    height: 88px;
    margin: 0 auto 28px;
    background: linear-gradient(145deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.35);
}

.offert-hero svg {
    width: 44px;
    height: 44px;
    color: #fff;
}

.offert-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.offert-description {
    font-size: 1rem;
    color: #64748b;
    margin: 0 0 28px;
    line-height: 1.5;
}

/* Phone input – caseta +40 exact la aceeași înălțime ca inputul */
.phone-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    align-items: stretch;
}

.offert-box .country-code-box,
.offert-box #phoneInput {
    height: 50px;
    min-height: 50px;
    padding: 0 16px;
    font-size: 1rem;
    line-height: 1.25;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.offert-box .country-code-box {
    flex-shrink: 0;
    width: 64px;
    background: #f1f5f9;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offert-box #phoneInput {
    flex: 1;
    min-width: 0;
    color: #0f172a;
    background: #fff;
}

.offert-box #phoneInput::placeholder {
    color: #94a3b8;
}

.offert-box #phoneInput:focus,
.offert-box .phone-input-wrapper:focus-within .country-code-box {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.offert-box .phone-input-wrapper:focus-within .country-code-box {
    border-color: #0ea5e9;
}

/* Submit button */
.offert-box .submit-btn {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(145deg, #0ea5e9 0%, #0284c7 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.offert-box .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.45);
}

.offert-box .submit-btn:active {
    transform: translateY(0);
}

.offert-box .submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Trust line */
.offert-trust {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.offert-trust svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: #0ea5e9;
}

/* Responsive */
@media (max-width: 520px) {
    .offert-box {
        padding: 40px 24px 32px;
        border-radius: 24px;
    }

    .offert-box .close-btn {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .offert-hero {
        width: 72px;
        height: 72px;
        margin-bottom: 22px;
        border-radius: 20px;
    }

    .offert-hero svg {
        width: 36px;
        height: 36px;
    }

    .offert-title {
        font-size: 1.3rem;
    }

    .offert-description {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .phone-input-wrapper {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .offert-box .country-code-box {
        width: 100%;
    }

    .offert-box .submit-btn {
        padding: 16px;
        font-size: 1rem;
    }
}
