/* ==========================================================================
   SARWESHWAR INDUSTRIES - LEAD ENQUIRY POPUP MODAL
   ========================================================================== */

.si-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.si-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.si-popup-modal {
    position: relative;
    width: 100%;
    max-width: 470px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(176, 26, 26, 0.12);
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.si-popup-overlay.active .si-popup-modal {
    transform: scale(1) translateY(0);
}

/* Top Accent Stripe */
.si-popup-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #b01a1a 0%, #e11d48 50%, #b01a1a 100%);
    z-index: 10;
}

/* Header */
.si-popup-header {
    position: relative;
    padding: 26px 26px 18px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
}

.si-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}

.si-popup-close:hover {
    background: #b01a1a;
    transform: rotate(90deg);
}

.si-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(176, 26, 26, 0.25);
    border: 1px solid rgba(225, 29, 72, 0.4);
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    color: #fca5a5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.si-popup-title {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
}

.si-popup-subtitle {
    margin: 0;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.45;
}

/* Body / Form */
.si-popup-body {
    padding: 22px 26px 26px;
}

.si-popup-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.si-popup-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.si-popup-label {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.si-popup-label span {
    color: #b01a1a;
}

.si-popup-input,
.si-popup-select {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    color: #0f172a;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.2s ease;
}

.si-popup-input:focus,
.si-popup-select:focus {
    background: #ffffff;
    border-color: #b01a1a;
    box-shadow: 0 0 0 3px rgba(176, 26, 26, 0.12);
}

.si-popup-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.si-popup-submit-btn {
    margin-top: 4px;
    padding: 13px 20px;
    background: linear-gradient(135deg, #b01a1a 0%, #881337 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(176, 26, 26, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.si-popup-submit-btn:hover {
    background: linear-gradient(135deg, #991b1b 0%, #701a35 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(176, 26, 26, 0.45);
}

.si-popup-submit-btn:active {
    transform: translateY(0);
}

.si-popup-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.si-popup-divider::before,
.si-popup-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.si-popup-whatsapp-btn {
    padding: 10px 16px;
    background: #ecfdf5;
    color: #047857;
    border: 1.5px solid #a7f3d0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.si-popup-whatsapp-btn:hover {
    background: #25d366;
    color: #ffffff;
    border-color: #25d366;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

/* Success State */
.si-popup-success {
    display: none;
    text-align: center;
    padding: 20px 10px 10px;
}

.si-popup-success.active {
    display: block;
    animation: siPopupFadeIn 0.3s ease;
}

.si-popup-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.1);
}

.si-popup-success-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.si-popup-success-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

@keyframes siPopupFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .si-popup-header {
        padding: 22px 20px 16px;
    }
    .si-popup-body {
        padding: 18px 20px 22px;
    }
    .si-popup-title {
        font-size: 18px;
    }
}
