/* =================== MODAL BASE =================== */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7); /* dark overlay */
    transition: all 0.3s ease;
}

/* Modal Content Box */
.modal-content {
    background-color: #fff;
    margin: 8% auto;
    padding: 30px 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    position: relative;
    animation: fadeIn 0.4s ease;
}


.modal-content select {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
    outline: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

.modal-content select:focus {
    border-color: #00e0ff;
    box-shadow: 0 0 8px rgba(0,224,255,0.4);
}

/* Fade in Animation */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

/* Modal Heading */
.modal-content h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 20px;
    color: #203a43;
    font-weight: 700;
}

/* Input & Textarea */
.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.modal-content input:focus,
.modal-content textarea:focus {
    border-color: #00e0ff;
    box-shadow: 0 0 8px rgba(0,224,255,0.4);
}

/* Submit Button */
.modal-content button.btn-quote {
    width: 100%;
    background: linear-gradient(135deg, #00e0ff, #00b8cc);
    color: #fff;
    border: none;
    padding: 12px 0;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.modal-content button.btn-quote:hover {
    background: linear-gradient(135deg, #00b8cc, #008899);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,184,204,0.4);
}

/* Close Button */
.modal .close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal .close:hover {
    color: #00e0ff;
}

/* Textarea Fix */
.modal-content textarea {
    resize: vertical;
    min-height: 100px;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 25px 20px;
    }

    .modal-content h2 {
        font-size: 22px;
    }
}