/* ================================
   MASTER PREMIUM POPUP DESIGN
================================ */

.custom-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    z-index: 999999;
}

/* Popup Box */
.custom-popup-box {
    background: #ffffff;
    width: 850px;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 40px 120px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: popupFade 0.3s ease;
}

/* Header */
.popup-header {
    padding: 30px 40px 20px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.popup-logo {
    max-height: 60px;
    margin-bottom: 15px;
}

.popup-header h2 {
    font-size: 26px;
    font-weight: 100;
    margin: 0;
    color: #0f172a;
}

.popup-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 22px;
    cursor: pointer;
    padding: 1px 9px;
    border-radius: 100%;
    border: 1px solid;
}

.popup-close:hover {
    color: #ef4444;
}

/* Scrollable Body */
.popup-form-body {
    padding: 30px 40px 40px;
    overflow-y: auto;
}

/* Custom Scrollbar */
.popup-form-body::-webkit-scrollbar {
    width: 6px;
}
.popup-form-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* ================================
   FORM IMPROVEMENTS
================================ */

.starco-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sf-row {
    display: flex;
    gap: 20px;
}

.sf-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.starco-form label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #1e293b;
}

.starco-form input,
.starco-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    transition: 0.3s ease;
    background: #f9fafb;
}

.starco-form input:focus,
.starco-form textarea:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
    outline: none;
}
.single-product div.product .product_meta > span {
    display: block;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 8px;
}
.starco-form textarea {
    min-height: 130px;
    resize: vertical;
}
.starco-form input[type="submit"] {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 50%, var(--primary) 100%);
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s ease;
    margin-top: 10px;
    border-radius: 30px;
}

.starco-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(37,99,235,0.3);
}

.starco-form  span.wpcf7-spinner {
    position: absolute;
    top: 57%;
    right: 0%;
    transform: translate(0%, -50%);
}

.starco-form .sf-submit {
    position: relative;
}
/* Remove CF7 default spacing */
.wpcf7-form p {
    margin: 0;
}
.wpcf7-form br {
    display: none;
}
button.custom-inquiry-btn {
    width: 100%;
    max-width: 80%;
    font-size: 19px;
    padding: 14px;
}
/* ================================
   RESPONSIVE
================================ */

@media(max-width:768px){

    .custom-popup-box {
        max-height: 95vh;
    }

    .popup-header {
        padding: 25px;
    }

    .popup-form-body {
        padding: 25px;
    }

    .sf-row {
        flex-direction: column;
    }
}

@media(max-width:574px){
	.custom-popup-box {
    max-height: 85vh;
    width: 90%;
}
	.starco-form label {
    font-size: 13px;
}
	.popup-form-body {
    padding: 17px;
}
	.popup-header {
    padding: 25px;
    background: #f5f5f5;
}
}

/* Animation */
@keyframes popupFade {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}