/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/
/**
 * Product Enquiry Page - CSS Styles
 * WoodMart Theme Compatible
 * 
 * Place this in: /assets/css/product-enquiry.css
 * Or add to your child theme's style.css
 */

/* ============================================
   1. ENQUIRE NOW BUTTON STYLES
   ============================================ */

.product-enquiry-button-wrapper {
    margin: 20px 0;
    display: flex;
    justify-content: flex-start;
}

.btn-enquire-now {
    background-color: #a0826d;
    color: #ffffff;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(160, 130, 109, 0.2);
}

.btn-enquire-now:hover {
    background-color: #8a6d5b;
    box-shadow: 0 4px 12px rgba(160, 130, 109, 0.3);
    transform: translateY(-2px);
}

.btn-enquire-now:active {
    transform: translateY(0);
}

.btn-enquire-now .btn-text {
    display: inline-block;
}

/* ============================================
   2. MODAL STRUCTURE
   ============================================ */

.product-enquiry-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-enquiry-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.product-enquiry-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    z-index: 1;
}

.product-enquiry-modal .modal-content {
    position: relative;
    z-index: 2;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   3. MODAL CLOSE BUTTON
   ============================================ */

.product-enquiry-modal .modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background-color: transparent;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-enquiry-modal .modal-close-btn:hover {
    color: #000;
}

/* ============================================
   4. MODAL BODY LAYOUT
   ============================================ */

.product-enquiry-modal .modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

/* ============================================
   5. LEFT COLUMN - PRODUCT INFO
   ============================================ */

.product-enquiry-modal .modal-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.product-enquiry-modal .modal-product-image {
    width: 100%;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-enquiry-modal .enquiry-product-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.product-enquiry-modal .modal-product-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

/* ============================================
   6. RIGHT COLUMN - CONTACT FORM
   ============================================ */

.product-enquiry-modal .modal-right {
    display: flex;
    align-items: flex-start;
    padding-top: 20px;
}

.product-enquiry-modal .modal-form-wrapper {
    width: 100%;
}

.product-enquiry-modal .form-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-enquiry-modal .cf7-form-container {
    width: 100%;
}

/* ============================================
   7. CONTACT FORM 7 STYLING (IN MODAL)
   ============================================ */

.product-enquiry-modal .cf7-form-container .wpcf7 {
    width: 100%;
}

.product-enquiry-modal .cf7-form-container .wpcf7-form {
    width: 100%;
}

.product-enquiry-modal .cf7-form-container .wpcf7-form p {
    margin-bottom: 16px;
}

.product-enquiry-modal .cf7-form-container .wpcf7-form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.product-enquiry-modal .cf7-form-container .wpcf7-form-control:focus {
    outline: none;
    border-color: #a0826d;
    box-shadow: 0 0 0 3px rgba(160, 130, 109, 0.1);
}

.product-enquiry-modal .cf7-form-container textarea.wpcf7-form-control {
    resize: vertical;
    min-height: 100px;
}

.product-enquiry-modal .cf7-form-container input[type="submit"] {
    background-color: #a0826d;
    color: #ffffff;
    border: none;
    padding: 12px 35px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.product-enquiry-modal .cf7-form-container input[type="submit"]:hover {
    background-color: #8a6d5b;
    box-shadow: 0 4px 12px rgba(160, 130, 109, 0.3);
}

.product-enquiry-modal .cf7-form-container input[type="submit"]:active {
    transform: translateY(1px);
}

/* Hidden fields styling */
.product-enquiry-modal .cf7-form-container input[type="hidden"] {
    display: none;
}

/* ============================================
   8. FORM VALIDATION MESSAGES
   ============================================ */

.product-enquiry-modal .cf7-form-container .wpcf7-not-valid {
    border-color: #d9534f !important;
}

.product-enquiry-modal .cf7-form-container .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
    color: #d9534f;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.product-enquiry-modal .cf7-form-container .wpcf7-mail-sent-ok {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 14px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
}

/* ============================================
   9. RESPONSIVE DESIGN - TABLET
   ============================================ */

@media (max-width: 768px) {
    .product-enquiry-modal .modal-content {
        width: 95%;
        max-width: 100%;
    }

    .product-enquiry-modal .modal-body {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }

    .product-enquiry-modal .modal-right {
        padding-top: 0;
    }

    .product-enquiry-modal .modal-product-image {
        max-height: 300px;
    }

    .product-enquiry-modal .modal-close-btn {
        top: 12px;
        right: 12px;
    }

    .btn-enquire-now {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* ============================================
   10. RESPONSIVE DESIGN - MOBILE
   ============================================ */

@media (max-width: 480px) {
    .product-enquiry-modal .modal-content {
        border-radius: 0;
    }

    .product-enquiry-modal .modal-body {
        gap: 20px;
        padding: 20px 15px;
    }

    .product-enquiry-modal .modal-product-image {
        max-height: 250px;
        padding: 15px;
    }

    .product-enquiry-modal .modal-product-title {
        font-size: 18px;
    }

    .product-enquiry-modal .form-title {
        font-size: 16px;
    }

    .product-enquiry-modal .cf7-form-container .wpcf7-form-control {
        padding: 10px 12px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .btn-enquire-now {
        padding: 12px 25px;
        font-size: 13px;
        width: 100%;
        text-align: center;
    }

    .product-enquiry-button-wrapper {
        margin: 15px 0;
    }
}

/* ============================================
   11. ACCESSIBILITY
   ============================================ */

.product-enquiry-modal .modal-content:focus {
    outline: none;
}

/* Keyboard navigation support */
.product-enquiry-modal .modal-close-btn:focus,
.btn-enquire-now:focus {
    outline: 2px solid #a0826d;
    outline-offset: 2px;
}

/* Screen reader only text */
.product-enquiry-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   12. PRINT STYLES
   ============================================ */

@media print {
    .product-enquiry-modal {
        display: none !important;
    }

    .product-enquiry-button-wrapper {
        display: none !important;
    }
}