/* Modal overlay & container */
.wc-inquiry-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;          /* Flexbox to center */
    justify-content: center; /* Horizontal center */
    align-items: center;     /* Vertical center */
    padding: 20px;           /* Small padding on small screens */
    overflow-y: auto;        /* Allow scroll if form is too tall */
}

.wc-inquiry-modal.active {
    display: flex;
}

.wc-inquiry-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
}

/* Modal box */
.wc-inquiry-box {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 500px;       /* Increase max width for laptops */
    max-height: 90vh;       /* Prevent modal from exceeding viewport height */
    padding: 30px;
    border-radius: 6px;
    z-index: 2;
    overflow-y: auto;       /* Scroll inside box if content exceeds 90vh */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Close button */
.wc-inquiry-close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Form wrapper styling */
.wc-cf7-form-wrapper {
    font-family: Arial, sans-serif;
    color: #333;
}

/* Labels and inputs */
.wc-cf7-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.wc-cf7-form input[type="text"],
.wc-cf7-form input[type="email"],
.wc-cf7-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    transition: 0.3s;
}

.wc-cf7-form input[type="text"]:focus,
.wc-cf7-form input[type="email"]:focus,
.wc-cf7-form textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0,115,170,0.2);
    outline: none;
}

/* Textarea */
.wc-cf7-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* Submit button */
.wc-cf7-form input[type="submit"] {
    background: #0073aa;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s;
}

.wc-cf7-form input[type="submit"]:hover {
    background: #005f80;
}

/* Hidden field */
.wc-cf7-form input.wc-product-name {
    display: none;
}

/* Responsive tweaks */
@media (min-width: 768px) {
    .wc-inquiry-box {
        padding: 10px;
        max-width: 480px;
    }
}

@media (min-width: 1024px) {
    .wc-inquiry-box {
        max-width: 500px;
        padding: 20px;
    }
}
