/* ============================================
   SAMI ESTIMATOR - Popup Styles v1.1
   ============================================ */

/* ----- Trigger Button ----- */
/* .sami-trigger-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.sami-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.sami-trigger-btn:active {
    transform: translateY(0);
} */

/* ----- Popup Overlay ----- */
.sami-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    animation: samiFadeIn 0.3s ease;
}

.sami-overlay.active {
    display: flex;
}

/* ----- Popup Container ----- */
.sami-popup {
    background: #ffffff;
    border-radius: 20px;
    width: 92%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: samiSlideUp 0.4s ease;
    position: relative;
}

/* ----- Popup Header ----- */
.sami-header {
    padding: 24px 28px 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sami-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sami-header h2 span {
    font-size: 24px;
}

.sami-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.sami-close-btn:hover {
    color: #0f172a;
}

/* ----- Popup Body ----- */
.sami-body {
    padding: 24px 28px 28px;
}

/* Form Groups */
.sami-form-group {
    margin-bottom: 20px;
}

.sami-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.sami-form-group select,
.sami-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.sami-form-group select:focus,
.sami-form-group input:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.sami-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

/* Area Input with Unit */
.sami-area-wrapper {
    display: flex;
    gap: 12px;
}

.sami-area-wrapper input {
    flex: 1;
}

.sami-area-wrapper .sami-unit {
    padding: 12px 16px;
    background: #f1f5f9;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    min-width: 80px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
}

/* ----- Price Display ----- */
.sami-price-display {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 16px;
    padding: 20px 24px;
    margin: 24px 0;
    text-align: center;
    border: 2px solid #bae6fd;
    transition: all 0.3s ease;
}

.sami-price-display.has-discount {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
}

.sami-price-display .sami-regular-price {
    font-size: 18px;
    color: #94a3b8;
    text-decoration: line-through;
    display: block;
    margin-bottom: 4px;
}

.sami-price-display .sami-discounted-price {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    display: block;
}

/* ============================================
   NEW: DISCOUNT BADGE WITH BUTTON
   ============================================ */
.sami-discount-section {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sami-discount-badge {
    display: inline-block;
    background: #dc2626;
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    text-transform: uppercase;
    animation: samiPulse 2s infinite;
}

@keyframes samiPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.sami-call-btn {
    display: inline-block;
    background: #22c55e;
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.sami-call-btn:hover {
    background: #16a34a;
    transform: scale(1.05);
}

.sami-call-btn .sami-whatsapp-icon {
    margin-right: 6px;
}

.sami-price-display .sami-price-label {
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
    display: block;
}

/* ============================================
   NEW: CONTACT SECTION
   ============================================ */
.sami-contact-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.sami-contact-section .sami-contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #0f172a;
}

.sami-contact-section .sami-contact-info .sami-phone-icon {
    font-size: 20px;
}

.sami-contact-section .sami-contact-info strong {
    color: #2563eb;
}

.sami-contact-section .sami-contact-actions {
    display: flex;
    gap: 8px;
}

.sami-contact-section .sami-contact-actions a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sami-contact-section .sami-contact-actions .sami-whatsapp-link {
    background: #25d366;
    color: white;
}

.sami-contact-section .sami-contact-actions .sami-whatsapp-link:hover {
    background: #128C7E;
}

.sami-contact-section .sami-contact-actions .sami-call-link {
    background: #2563eb;
    color: white;
}

.sami-contact-section .sami-contact-actions .sami-call-link:hover {
    background: #1d4ed8;
}

/* ----- Contact Form ----- */
.sami-contact-form {
    margin-top: 20px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.sami-contact-form .sami-form-group {
    margin-bottom: 14px;
}

.sami-contact-form .sami-form-group label {
    font-size: 13px;
    font-weight: 500;
}

.sami-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.sami-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.sami-submit-btn:active {
    transform: translateY(0);
}

.sami-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ----- Success Message ----- */
.sami-success {
    text-align: center;
    padding: 20px 0;
}

.sami-success .sami-check {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
}

.sami-success h3 {
    font-size: 22px;
    color: #0f172a;
    margin: 0 0 8px;
}

.sami-success p {
    color: #64748b;
    margin: 0;
}

/* ----- Animations ----- */
@keyframes samiFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes samiSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ----- Scrollbar Styling ----- */
.sami-popup::-webkit-scrollbar {
    width: 6px;
}

.sami-popup::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.sami-popup::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* ----- Responsive ----- */
@media (max-width: 480px) {
    .sami-popup {
        width: 95%;
        border-radius: 16px;
    }
    
    .sami-header {
        padding: 18px 20px 12px;
    }
    
    .sami-header h2 {
        font-size: 18px;
    }
    
    .sami-body {
        padding: 18px 20px 22px;
    }
    
    .sami-price-display .sami-discounted-price {
        font-size: 30px;
    }
    
    .sami-area-wrapper {
        flex-direction: column;
    }
    
    .sami-area-wrapper .sami-unit {
        min-width: auto;
    }
    
    .sami-contact-section {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .sami-contact-section .sami-contact-info {
        justify-content: center;
    }
    
    .sami-contact-section .sami-contact-actions {
        justify-content: center;
    }
    
    .sami-discount-section {
        flex-direction: column;
        gap: 8px;
    }
}