/* Modal Overlay (Background) */
.da-quote-modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(26, 21, 20, 0.65); /* Elegant dark semi-transparent background */
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.da-quote-modal-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Modal Content Box */
.da-quote-modal-content {
    background-color: #ffffff;
    margin: auto;
    padding: 30px;
    border: 1px solid #e0e0e0;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease-in-out;
}

.da-quote-modal-overlay.show .da-quote-modal-content {
    transform: translateY(0);
}

/* Close Button */
.da-quote-modal-close {
    color: #4c4c4c;
    float: right;
    font-size: 28px;
    font-weight: bold;
    background: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    line-height: 1;
    padding: 0;
}

.da-quote-modal-close:hover,
.da-quote-modal-close:focus {
    color: #1a1514;
    text-decoration: none;
    outline: none;
}

/* Header */
.da-quote-modal-header h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #1a1514;
    font-size: 1.5rem;
}

.da-product-name-display {
    color: #8c672b; /* Brand gold */
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Form Styles Override */
.da-quote-modal-body .wpcf7-form-control-wrap input,
.da-quote-modal-body .wpcf7-form-control-wrap textarea {
    width: 100%;
    box-sizing: border-box;
}

.da-quote-modal-body .wpcf7-submit {
    width: 100%;
    margin-top: 10px;
}

/* Hide form elements on successful submission */
.da-quote-modal-body .wpcf7 form.sent .da-form-row,
.da-quote-modal-body .wpcf7 form.sent .da-form-submit,
.da-quote-modal-body .wpcf7 form.sent h3,
.da-quote-modal-body .wpcf7 form.sent p {
    display: none !important;
}

/* Style the success message beautifully */
.da-quote-modal-body .wpcf7 form.sent .wpcf7-response-output {
    display: block !important;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 30px 10px;
    margin: 0;
    border: none !important;
    color: #8c672b !important;
}
