/**
 * Quotes Public Styles
 * Request-a-quote form styling
 */

/* ============================================
   Form Container & Structure
   ============================================ */
.quote-form .form-control,
.quote-form .form-select {
    height: 45px;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.quote-form textarea.form-control {
    height: auto;
    min-height: 100px;
}

.quote-form .form-control:focus,
.quote-form .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ============================================
   Labels & Typography
   ============================================ */
.quote-form .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.quote-form .text-danger {
    color: #dc3545 !important;
}

/* ============================================
   Form Controls - Checkboxes
   ============================================ */
.quote-form .form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.15em;
}

.quote-form .form-check-label {
    margin-left: 0.5rem;
    font-weight: normal;
}

/* ============================================
   Submit Button
   ============================================ */
.quote-form .nir-btn {
    min-height: 50px;
}

/* ============================================
   Validation States
   ============================================ */
.quote-form .invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.quote-form .was-validated .form-control:invalid,
.quote-form .was-validated .form-select:invalid {
    border-color: #dc3545;
}

.quote-form .was-validated .form-control:invalid ~ .invalid-feedback,
.quote-form .was-validated .form-select:invalid ~ .invalid-feedback {
    display: block;
}

.quote-form .was-validated .form-control:valid,
.quote-form .was-validated .form-select:valid {
    border-color: #198754;
}

/* ============================================
   Contact Info Footer
   ============================================ */
.contact-info-footer {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.contact-info-footer h5 {
    color: #333;
    font-weight: 600;
}

.contact-info-footer a {
    color: #0d6efd;
    text-decoration: none;
}

.contact-info-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   Success Alert
   ============================================ */
.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .quote-form .form-control,
    .quote-form .form-select {
        font-size: 0.875rem;
    }
    
    .contact-info-footer {
        padding: 1.5rem;
    }
}

/* Modal Backdrop & Interaction Prevention */
body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

.modal-backdrop {
    z-index: 99998 !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
}

.modal {
    z-index: 99999 !important;
}

.modal-backdrop.fade {
    opacity: 0.7;
}

.modal-backdrop.show {
    opacity: 0.7;
}

/* Success Modal */
#successQuoteModal .modal-content {
    border-radius: 10px;
}

#successQuoteModal .modal-header {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#successQuoteModal .text-success {
    color: #198754 !important;
}

/* Error Modal */
#errorQuoteModal .modal-content {
    border-radius: 10px;
}

#errorQuoteModal .modal-header {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#errorQuoteModal .text-danger {
    color: #dc3545 !important;
}

/* ============================================
   Loading States
   ============================================ */
.nir-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.fa-spinner.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
