/* CSS for Auto Quote Calc form */

#aqc-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* Progress Bar */
.aqc-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.aqc-progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    z-index: 1;
}

.aqc-step {
    background: #ddd;
    color: #666;
    padding: 15px 20px;
    border-radius: 50px;
    font-weight: bold;
    position: relative;
    z-index: 2;
    min-width: 120px;
    text-align: center;
    transition: all 0.3s ease;
}

.aqc-step.active {
    background: #007cba;
    color: white;
}

.aqc-step.completed {
    background: #28a745;
    color: white;
}

/* Form Steps */
.aqc-form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.aqc-form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Groups */
.aqc-form-group {
    margin-bottom: 20px;
}

.aqc-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.aqc-form-group input[type="text"],
.aqc-form-group input[type="email"],
.aqc-form-group input[type="tel"],
.aqc-form-group input[type="number"],
.aqc-form-group input[type="date"],
.aqc-form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.aqc-form-group input[type="text"]:focus,
.aqc-form-group input[type="email"]:focus,
.aqc-form-group input[type="tel"]:focus,
.aqc-form-group input[type="number"]:focus,
.aqc-form-group input[type="date"]:focus,
.aqc-form-group select:focus {
    border-color: #007cba;
    outline: none;
}

.aqc-form-group input.error {
    border-color: #dc3545;
}

/* Checkbox and Radio Styles */
.aqc-form-group input[type="checkbox"],
.aqc-form-group input[type="radio"] {
    margin-right: 8px;
}

.aqc-form-group label input[type="checkbox"],
.aqc-form-group label input[type="radio"] {
    margin-right: 8px;
}

.aqc-service-types {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.aqc-service-types label {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.aqc-service-types label:hover {
    background: #e9ecef;
    border-color: #007cba;
}

.aqc-service-types label input[type="radio"]:checked + span,
.aqc-service-types label:has(input[type="radio"]:checked) {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* Location Display */
.aqc-location-display {
    margin-top: 5px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 3px;
    font-size: 14px;
    color: #666;
    min-height: 20px;
}

.aqc-distance-display {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #1976d2;
}

/* Service Forms */
.aqc-service-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
    border: 1px solid #ddd;
}

.aqc-service-form h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

/* Buttons */
.aqc-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 10px;
}

.aqc-btn:hover {
    background: #005a8b;
}

.aqc-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.aqc-btn-prev {
    background: #6c757d;
}

.aqc-btn-prev:hover {
    background: #545b62;
}

.aqc-btn-submit {
    background: #28a745;
}

.aqc-btn-submit:hover {
    background: #1e7e34;
}

.aqc-form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #aqc-form-container {
        padding: 15px;
    }
    
    .aqc-progress-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .aqc-progress-bar::before {
        display: none;
    }
    
    .aqc-service-types {
        flex-direction: column;
    }
    
    .aqc-form-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .aqc-btn {
        width: 100%;
        margin-right: 0;
    }
}

/* Loading Animation */
.aqc-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.aqc-error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.aqc-error-message.show {
    display: block;
}

/* Success Messages */
.aqc-success-message {
    color: #28a745;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Quote Page Styles */
.aqc-quote-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.aqc-quote-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #007cba;
}

.aqc-quote-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.aqc-quote-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.aqc-quote-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* Price Breakdown Styles */
.aqc-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.aqc-price-item:last-child {
    border-bottom: none;
}

.aqc-price-description {
    flex: 1;
    color: #555;
}

.aqc-price-amount {
    font-weight: bold;
    color: #333;
    min-width: 80px;
    text-align: right;
}

.aqc-price-item .aqc-price-amount {
    color: #007cba;
}

.aqc-quote-total {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 30px;
}

.aqc-quote-total h2 {
    margin: 0;
    color: #1976d2;
    font-size: 2.5em;
}

@media (max-width: 768px) {
    .aqc-quote-details {
        grid-template-columns: 1fr;
    }
    
    .aqc-price-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .aqc-price-amount {
        text-align: left;
        min-width: auto;
    }
}
