/* FalconX Instant Quote Frontend Styles */

.falconx-quote-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.falconx-quote-form {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.falconx-quote-form h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
}

.form-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    color: #34495e;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row.single {
    grid-template-columns: 1fr;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.surcharge-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.surcharge-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.surcharge-option:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.surcharge-option input[type="checkbox"] {
    margin-right: 10px;
}

.surcharge-option label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.btn-primary {
    background: #3498db;
    color: #ffffff;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Quote Results */
.quote-results {
    display: none;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 20px;
}

.quote-results h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.total-price {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #ffffff;
}

.total-price .label {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.total-price .amount {
    font-size: 36px;
    font-weight: 700;
}

.quote-breakdown {
    margin-bottom: 25px;
}

.price-component,
.price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.price-component:last-child,
.price-total:last-child {
    border-bottom: none;
}

.price-component .label {
    color: #2c3e50;
    font-weight: 500;
}

.price-component .amount {
    color: #7f8c8d;
    font-weight: 500;
}

.price-total .label {
    color: #2c3e50;
    font-weight: 600;
}

.price-total .amount {
    color: #2c3e50;
    font-weight: 600;
}

.price-total.final {
    border-top: 2px solid #3498db;
    margin-top: 15px;
    padding-top: 15px;
}

.price-total.final .label {
    font-size: 18px;
    color: #2c3e50;
}

.price-total.final .amount {
    font-size: 20px;
    color: #27ae60;
}

.type-multiplier .amount {
    color: #e67e22 !important;
}

.type-surcharge .amount {
    color: #e74c3c !important;
}

.explanations {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.explanations h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.explanations p {
    color: #5a6c7d;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.review-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.review-notice p {
    color: #856404;
    margin: 0;
    font-size: 14px;
}

/* Messages */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Form Validation */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
}

.form-group .error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .falconx-quote-container {
        padding: 15px;
    }
    
    .falconx-quote-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .total-price .amount {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .falconx-quote-form {
        padding: 15px;
    }
    
    .falconx-quote-form h2 {
        font-size: 24px;
    }
    
    .surcharge-options {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .falconx-quote-form,
    .button-group {
        display: none;
    }
    
    .quote-results {
        box-shadow: none;
        border: 1px solid #000;
    }
}

