@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/*
 * Smart Inquiry Popup Pro – Front‑end style
 * Glassmorphism (Frosted Light), gradient button, input animations, mobile‑first layout.
 */

.sip-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sip-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup card – Frosted Light glass effect */
.sip-popup-card {
    font-family: 'Outfit', sans-serif;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 16px;
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 90%;
    max-width: 400px;
    padding: 30px 25px;
    color: #2d3748;
    position: relative;
    box-sizing: border-box;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sip-popup-overlay.active .sip-popup-card {
    transform: scale(1);
}

/* Close button */
.sip-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #718096;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.sip-close-btn:hover {
    background: #0000 !important;
    color: #718096 !important;
}

/* Title */
.sip-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 20px 0;
    text-align: center;
}

/* Product Preview Section */
.sip-product-preview {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 20px;
    gap: 12px;
}

#sip-product-img {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    object-fit: cover;
    background: #f7fafc;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#sip-product-title {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #2d3748;
    line-height: 1.3;
}

/* Form fields – floating label effect */
.sip-form-group {
    position: relative;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.sip-form-group input,
.sip-form-group textarea {
    width: 100%;
    padding: 12px 12px 12px 42px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #2d3748;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.sip-form-group input:focus,
.sip-form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
    background: #ffffff;
}

.sip-form-group label {
    position: absolute;
    top: 13px;
    left: 42px;
    font-size: 0.9rem;
    color: #718096;
    pointer-events: none;
    transition: all 0.2s ease;
}

.sip-form-group input:not(:placeholder-shown)+label,
.sip-form-group textarea:not(:placeholder-shown)+label,
.sip-form-group input:focus+label,
.sip-form-group textarea:focus+label {
    top: -9px;
    left: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 1px 6px;
    font-size: 0.75rem;
    border-radius: 4px;
    color: #4CAF50;
    font-weight: 500;
}

/* Icons inside inputs */
.sip-form-group .sip-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1.1rem;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

/* Ensure inner i tag (if any) inherits flex centering and correct font size */
.sip-form-group .sip-icon i.dashicons {
    font-size: 1.1rem;
    width: auto;
    height: auto;
    line-height: inherit;
    display: inline-block;
}

.sip-form-group textarea~.sip-icon {
    top: 22px;
}

/* Rotate/flip the phone icon receiver to point in the standard premium direction (up-right) */
.sip-form-group .dashicons-phone::before {
    display: inline-block;
    transform: scaleX(-1);
}

/* Submit button */
.sip-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.sip-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(76, 175, 80, 0.3);
}

.sip-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Floating / Static Enquiry Button */
.sip-enquiry-button {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 23px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
    transition: all 0.2s ease;
    margin-top: 0px !important;
}

.sip-enquiry-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.25);
}

/* Success checkmark animation */
.sip-success {
    display: none;
    text-align: center;
    color: #2E7D32;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 15px;
}

.sip-success.active {
    display: block;
    animation: sip-check 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes sip-check {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Loading spinner */
.sip-spinner {
    display: none;
    border: 3px solid rgba(76, 175, 80, 0.1);
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    animation: spin 0.8s linear infinite;
    margin: 15px auto 0 auto;
}

.sip-spinner.active {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .sip-popup-card {
        padding: 24px 18px;
        width: 95%;
    }
}