/*
    form.css
    Styles for the contact modal and form elements.
    
    OPTIMIZATION NOTES:
    - Improved mobile responsiveness for the modal width.
    - Enhanced focus state on form controls for better user experience.
*/

/* Popup Modal - UPDATED TO MATCH IMAGE */
.modal-dialog.modal-lg {
    max-width: 500px; /* Desktop width set to 500px */
}

.modal-premium .modal-content {
    /* Removed fixed height for content flexibility */
    /* height: 500px; */ 
    overflow: hidden;
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-premium .modal-header {
    background: none; 
    border-bottom: 2px solid #051350 !important; /* Blue border at the bottom */
    text-align: center;
    display: block;
    padding: 1.5rem;
}

.modal-premium .modal-header .btn-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    filter: none;
    color: #000000;
    opacity: 0.7;
}
.modal-premium .modal-body {
    padding: 2rem;
    overflow-y: auto;
}

/* --- Form Controls (Smoother Experience) --- */
.modal-premium .form-control,
.modal-premium .form-select {
    border: 2px solid #e2e8f0;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    /* Optimized transition */
    transition: border-color 0.3s ease, box-shadow 0.3s ease; 
    margin-bottom: 1rem;
    width: 100%;
}

.modal-premium .form-control:focus,
.modal-premium .form-select:focus {
    border-color: var(--accent-yellow);
    /* Used custom color for better contrast/feel */
    box-shadow: 0 0 0 0.15rem rgba(230, 112, 4, 0.4); 
    outline: none;
}

.modal-premium .form-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--primary-blue);
    display: block; /* Ensure label is a block element */
    text-align: left; /* Ensure left alignment */
}

.modal-premium .submit-btn {
    background: var(--primary-blue);
    color: white;
    padding: 1rem;
    font-weight: 600;
    border-radius: 6px;
    width: 100%;
    border: none;
    transition: all 0.3s;
    margin-top: 1rem;
}

.modal-premium .submit-btn:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 74, 15, 0.2);
}

@media (max-width: 767.98px) {
    .modal-lg {
        max-width: 95%; 
    }
    .modal-premium .modal-body {
        padding: 1.5rem; 
    }
}