/* =========================================
   WooCommerce Product Enquiry Popup — CSS
   ========================================= */

/* ---------- Enquiry Button ---------- */
.wpe-enquiry-wrapper {
    margin-top: 14px;
    display: inline-block;
    width: 100%;
}

.wpe-enquiry-wrapper .wpe-enquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 2px solid #115d2c;
    background: #115d2c;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    justify-content: center;
}

.wpe-enquiry-wrapper .wpe-enquiry-btn:hover {
    background: #83b735;
    color: #1a1a2e;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26,26,46,0.18);
}

.wpe-btn-icon {
    font-size: 16px;
    transition: transform 0.25s;
}

.wpe-enquiry-btn:hover .wpe-btn-icon {
    transform: rotate(-10deg) scale(1.2);
}

/* ---------- Overlay ---------- */
.wpe-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: wpe-overlay-in 0.3s ease;
}

.wpe-popup-overlay.wpe-active {
    display: flex;
}

@keyframes wpe-overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---------- Popup Box ---------- */
.wpe-popup-box {
    background: #fff;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,0.35);
    animation: wpe-box-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes wpe-box-in {
    from { opacity: 0; transform: scale(0.88) translateY(30px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- Close Button ---------- */
.wpe-popup-box .wpe-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(0,0,0,0.07);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

.wpe-close-btn:hover {
    background: #e74c3c;
    color: #fff;
    transform: rotate(90deg);
}

/* ---------- Popup Header ---------- */
.wpe-popup-header {
    background: linear-gradient(135deg, #83b735 0%, #83b735 60%, #83b735 100%);
    padding: 36px 32px 28px;
    border-radius: 12px 12px 0 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.wpe-popup-header::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.wpe-popup-header::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 20px;
    width: 130px;
    height: 130px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.wpe-popup-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #e0e0ff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.wpe-popup-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    margin: 0 0 6px !important;
    color: #fff !important;
    line-height: 1.2 !important;
}

.wpe-popup-subtitle {
    font-size: 13px !important;
    color: rgba(255,255,255,0.65) !important;
    margin: 0 !important;
}

/* ---------- Product Info Strip ---------- */
.wpe-product-info {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #eef0f5;
    background: #f8f9fc;
}

.wpe-product-detail {
    flex: 1;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-right: 1px solid #eef0f5;
}

.wpe-product-detail:last-child {
    border-right: none;
}

.wpe-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9aa0b4;
}

.wpe-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Form Wrapper ---------- */
.wpe-popup-box .wpcf7 {
    padding: 28px 32px 32px;
}

/* ---------- CF7 Field Styles ---------- */
.wpe-popup-box .wpcf7 input[type="text"],
.wpe-popup-box .wpcf7 input[type="email"],
.wpe-popup-box .wpcf7 input[type="tel"],
.wpe-popup-box .wpcf7 textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8eaf0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a2e;
    background: #fafbff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
}

.wpe-popup-box .wpcf7 input[type="text"]:focus,
.wpe-popup-box .wpcf7 input[type="email"]:focus,
.wpe-popup-box .wpcf7 input[type="tel"]:focus,
.wpe-popup-box .wpcf7 textarea:focus {
    border-color: #1a1a2e;
    box-shadow: 0 0 0 4px rgba(26,26,46,0.08);
    background: #fff;
}

.wpe-popup-box .wpcf7 textarea {
    min-height: 110px;
    resize: vertical;
}

.wpe-popup-box .wpcf7 .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 14px;
}

.wpe-popup-box .wpcf7 label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 6px;
}

/* ---------- Submit Button ---------- */
.wpe-popup-box .wpcf7 input[type="submit"] {
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, #83b735, #83b735);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 6px;
}

.wpe-popup-box .wpcf7 input[type="submit"]:hover {
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15,52,96,0.35);
}

/* ---------- CF7 Response / Validation ---------- */
.wpe-popup-box .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
    display: block;
}

.wpe-popup-box .wpcf7-response-output {
    margin: 12px 0 0 !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    border: none !important;
}

.wpe-popup-box .wpcf7-mail-sent-ok {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border-left: 4px solid #10b981 !important;
}

.wpe-popup-box .wpcf7-validation-errors,
.wpe-popup-box .wpcf7-mail-sent-ng {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border-left: 4px solid #ef4444 !important;
}

/* ---------- Hidden Fields ---------- */
.wpe-popup-box input[type="hidden"] {
    display: none !important;
}

/* ---------- Scrollbar ---------- */
.wpe-popup-box::-webkit-scrollbar {
    width: 5px;
}
.wpe-popup-box::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.wpe-popup-box::-webkit-scrollbar-thumb {
    background: #c0c4d6;
    border-radius: 10px;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
    .wpe-popup-header {
        padding: 28px 20px 22px;
    }
    .wpe-popup-box .wpcf7 {
        padding: 20px;
    }
    .wpe-popup-title {
        font-size: 21px !important;
    }
    .wpe-product-detail {
        padding: 10px 14px;
    }
}
