/**
 * Template 8 - Quote Form Styles
 * Styling for the quote request form
 */

.quote-section {
    background-color: var(--surface-color);
}

.quote-form-wrapper {
    background: var(--background-color);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.quote-form h1 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.quote-form p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.quote-form .form-label {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.quote-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--background-color);
    color: var(--text-color);
}

.quote-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 120, 212, 0.25);
    outline: none;
}

.quote-form .form-control.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.quote-form .form-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.quote-form .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.quote-form .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.quote-form .btn-primary:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

.quote-form select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.quote-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.quote-form .row .col-md-6:first-child {
    padding-right: 0.75rem;
}

.quote-form .row .col-md-6:last-child {
    padding-left: 0.75rem;
}

@media (max-width: 768px) {
    .quote-form-wrapper {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .quote-form .row .col-md-6 {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .quote-section {
        padding-top: 80px;
    }
}

/* Form validation feedback */
.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading state for submit button */
.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}