/* --- /css/components/quote-modal.css --- */

/* Ensures Poppins font is available */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

.quote-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.quote-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.quote-modal-container {
    background-color: #ffffff;
    color: #212529;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    font-family: 'Poppins', sans-serif; /* Set base font for the container */
}

.quote-modal-overlay.is-visible .quote-modal-container {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}
.close-modal-btn:hover {
    color: #000;
}

.quote-modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 30px 0;
}

#quote-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

/* Explicitly set font for all form elements */
#quote-form label,
#quote-form input,
#quote-form textarea,
#quote-form .submit-button,
.error-message {
    font-family: 'Poppins', sans-serif;
}

#quote-form input,
#quote-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    background-color: #f8f9fa;
    color: #333;
}

#quote-form input::placeholder,
#quote-form textarea::placeholder {
    color: #aaa;
    font-family: 'Poppins', sans-serif; /* Ensure placeholder uses the font */
}

.error-message {
    color: #d9232d;
    font-size: 0.85rem;
    margin: 5px 0 0 5px;
    display: none;
}

#quote-form input.invalid {
    border-color: #d9232d;
}

#quote-form input.invalid + .error-message {
    display: block;
}

#quote-form .submit-button {
    width: 100%;
    padding: 16px;
    background-color: #212529;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
}

#quote-form .submit-button:hover {
    background-color: #495057;
}

/* --- Toast Notification Styles --- */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745;
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 3000;
    font-family: 'Poppins', sans-serif; /* Poppins Font */
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, bottom 0.3s ease;
}

.toast-notification.show {
    bottom: 40px;
    opacity: 1;
    visibility: visible;
}