/* Quote Modal Styles */
.quote-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.quote-modal-overlay.active {
    display: flex;
}

.quote-modal-content {
    background-color: #fff;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quote-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    position: sticky;
    top: 0;
    z-index: 1;
    border-radius: 10px 10px 0 0;
}

.quote-modal-header h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.quote-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.quote-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #dc2626;
}

.quote-modal-body {
    padding: 0 2rem 2rem;
}

.quote-form-subtitle {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

/* Form Section Titles */
.form-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #dc2626;
    display: inline-block;
}

.form-section-title:first-of-type {
    margin-top: 0;
}

/* Form Sections */
.form-section {
    border: none;
    margin-bottom: 2rem;
    padding: 0;
}

.form-section legend {
    padding: 0;
    margin-bottom: 1.5rem;
}

.form-section legend h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    position: relative;
    padding-bottom: 0.5rem;
}

.form-section legend h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    font-style: italic;
}

.form-group select {
    cursor: pointer;
    background-color: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Custom Country Input */
.custom-country-input {
    animation: slideDown 0.3s ease-out;
}

.custom-country-input input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    background-color: #f8f9fa;
}

.custom-country-input input:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
    background-color: #fff;
}

.custom-country-input input::placeholder {
    color: #999;
    font-style: italic;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #1e3a8a;
    flex-shrink: 0;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #1e3a8a;
    font-size: 1rem;
    line-height: 1.4;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #555;
}

/* Required Fields Indicator */
.required-fields-indicator {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    margin: 1.5rem 0;
}

/* Form Buttons */
.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.btn-cancel,
.btn-submit {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 120px;
}

.btn-cancel {
    background-color: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.btn-cancel:hover {
    background-color: #e9ecef;
    color: #333;
}

.btn-submit {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .quote-modal-overlay {
        padding: 10px;
    }
    
    .quote-modal-content {
        max-height: 95vh;
    }
    
    .quote-modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .quote-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .quote-modal-body {
        padding: 0 1.5rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .quote-modal-header {
        padding: 1rem 1rem 0.5rem;
    }
    
    .quote-modal-body {
        padding: 0 1rem 1rem;
    }
    
    .quote-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}
