/**
 * Quote Form Styles - Phase 3 Implementation
 * Week 3: Public Quote Request Interface with Glassmorphism Design
 * Integrates with established layout system
 */

/* Page-Level Styles */
.quote-form-page {
    background: var(--glassmorphism-bg, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    min-height: 100vh;
}

.quote-hero {
    padding: 2rem 0;
    text-align: center;
}

.quote-header {
    margin-bottom: 2rem;
}

.quote-title {
    font-family: var(--font-headings, 'Poppins', sans-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.quote-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.quote-form-section {
    padding: 2rem 0 4rem;
}

/* Glass Card Container */
.glass-card.quote-form-card {
    background: var(--glass-background, rgba(255, 255, 255, 0.25));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-lg, 20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h3 {
    font-family: var(--font-headings, 'Poppins', sans-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color, #333);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h3 i {
    color: var(--primary-color, #228b22);
    font-size: 1.2rem;
}

.section-description {
    color: var(--text-light, #666);
    font-size: 0.95rem;
    margin: 0;
}

/* Service Selection Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.service-card {
    background: var(--glass-background, rgba(255, 255, 255, 0.6));
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-radius: var(--border-radius, 12px);
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--transition, 0.3s ease);
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: var(--glass-background-hover, rgba(255, 255, 255, 0.8));
}

.service-card.selected {
    border-color: var(--primary-color, #228b22);
    background: var(--glass-background-selected, rgba(34, 139, 34, 0.1));
    box-shadow: 0 8px 25px rgba(34, 139, 34, 0.2);
}

.service-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color, #228b22);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
}

.service-info {
    flex: 1;
}

.service-info h4 {
    font-family: var(--font-headings, 'Poppins', sans-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color, #333);
    margin: 0 0 0.25rem 0;
}

.service-info p {
    color: var(--text-light, #666);
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.service-rate {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color, #228b22);
}

.service-select {
    flex-shrink: 0;
}

.service-select input[type="radio"] {
    display: none;
}

.service-select label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color, #ddd);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition, 0.3s ease);
    position: relative;
}

.service-select input[type="radio"]:checked + label {
    border-color: var(--primary-color, #228b22);
    background: var(--primary-color, #228b22);
}

.service-select .checkmark {
    display: none;
    color: white;
    font-size: 0.7rem;
}

.service-select input[type="radio"]:checked + label .checkmark {
    display: block;
}

.service-select input[type="radio"]:checked + label .checkmark::before {
    content: '✓';
}

/* No Services State */
.no-services {
    text-align: center;
    padding: 2rem;
    color: var(--text-light, #666);
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius, 12px);
    border: 2px dashed var(--border-color, #ddd);
}

.no-services i {
    font-size: 2rem;
    color: var(--warning-color, #ffa500);
    margin-bottom: 1rem;
    display: block;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 500;
    color: var(--text-color, #333);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.required {
    color: var(--error-color, #e53e3e);
    margin-left: 0.25rem;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color, #e2e8f0);
    border-radius: var(--border-radius, 8px);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    transition: all var(--transition, 0.3s ease);
    color: var(--text-color, #333);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color, #228b22);
    box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.form-control.error {
    border-color: var(--error-color, #e53e3e);
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-control::placeholder {
    color: var(--text-light, #999);
}

/* Textarea Specific */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Error Messages */
.field-error,
.field-errors {
    margin-top: 0.5rem;
}

.error-message {
    display: block;
    color: var(--error-color, #e53e3e);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

/* Glass Panel for Quote Display */
.glass-panel {
    background: var(--glass-background, rgba(255, 255, 255, 0.3));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--border-radius-lg, 16px);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Form Actions */
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius, 8px);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition, 0.3s ease);
    text-transform: none;
    min-width: 140px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-width: 160px;
}

.btn-primary {
    background: var(--primary-color, #228b22);
    color: white;
    box-shadow: 0 4px 12px rgba(34, 139, 34, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark, #1e7a1e);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 139, 34, 0.4);
}

.btn-primary:disabled {
    background: var(--text-light, #ccc);
    color: white;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text-color, #333);
    border: 2px solid var(--border-color, #ddd);
}

.btn-secondary:hover {
    background: var(--glass-background, rgba(255, 255, 255, 0.5));
    border-color: var(--primary-color, #228b22);
    transform: translateY(-1px);
}

/* Form Progress Indicator */
.form-progress {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--glass-background, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg, 16px);
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 100;
}

.progress-steps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-light, #666);
}

.step.active {
    color: var(--primary-color, #228b22);
    font-weight: 600;
}

.step.completed {
    color: var(--success-color, #10b981);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--border-color, #e2e8f0);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 600;
}

.step.active .step-number {
    background: var(--primary-color, #228b22);
}

.step.completed .step-number {
    background: var(--success-color, #10b981);
}

.progress-bar {
    height: 4px;
    background: var(--border-color, #e2e8f0);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color, #228b22), var(--primary-light, #32cd32));
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
}

/* Modal Overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-lg, 20px);
    padding: 2rem;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-content h3 {
    font-family: var(--font-headings, 'Poppins', sans-serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color, #333);
}

.modal-content p {
    color: var(--text-light, #666);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color, #e2e8f0);
    border-top: 4px solid var(--primary-color, #228b22);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.success-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.success-icon {
    color: var(--success-color, #10b981);
}

.error-icon {
    color: var(--error-color, #e53e3e);
}

.quote-ref {
    background: var(--background-light, #f8f9fa);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--border-radius, 8px);
    padding: 1rem;
    margin: 1.5rem 0;
}

.ref-number {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color, #228b22);
}

.modal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Address Fields Styling */
.address-field-group {
    margin-bottom: 2rem;
}

.address-field-group .form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-color, #333);
    margin-bottom: 0.75rem;
}

.address-field-group .form-label i {
    color: var(--primary-color, #228b22);
    font-size: 1rem;
}

.address-input-container {
    position: relative;
}

.address-input-container .form-control {
    padding-right: 3rem; /* Space for validation icon */
}

/* Address Suggestions */
.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: white;
    border: 1px solid var(--border-color, #e2e8f0);
    border-top: none;
    border-radius: 0 0 var(--border-radius, 8px) var(--border-radius, 8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
}

.suggestions-list {
    padding: 0;
}

.address-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
    transition: background-color 0.2s ease;
}

.address-suggestion:last-child {
    border-bottom: none;
}

.address-suggestion:hover {
    background-color: var(--background-light, #f8fafc);
}

.suggestion-text {
    flex: 1;
    color: var(--text-color, #333);
    font-size: 0.95rem;
}

.suggestion-confidence {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50%;
    margin-left: 0.5rem;
}

.suggestion-confidence.confidence-high {
    background-color: var(--success-color, #10b981);
    color: white;
}

.suggestion-confidence.confidence-medium {
    background-color: var(--warning-color, #fbbf24);
    color: var(--text-color, #333);
}

.suggestion-confidence.confidence-low {
    background-color: var(--border-color, #e2e8f0);
    color: var(--text-light, #666);
}

/* Address Validation */
.address-validation {
    margin-top: 0.5rem;
    min-height: 1.5rem;
}

.validation-loading,
.validation-success,
.validation-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius, 6px);
    font-size: 0.85rem;
    line-height: 1.3;
}

.validation-loading {
    background-color: var(--background-light, #f8fafc);
    color: var(--text-light, #666);
    border: 1px solid var(--border-color, #e2e8f0);
}

.validation-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #059669);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.validation-success.confidence-high {
    background-color: rgba(16, 185, 129, 0.15);
}

.validation-success.confidence-medium {
    background-color: rgba(251, 191, 36, 0.1);
    color: var(--warning-color, #d97706);
    border-color: rgba(251, 191, 36, 0.3);
}

.validation-success.confidence-low {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--info-color, #2563eb);
    border-color: rgba(59, 130, 246, 0.3);
}

.validation-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error-color, #dc2626);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.formatted-address {
    margin-top: 0.25rem;
    font-style: italic;
    font-size: 0.8rem;
    opacity: 0.8;
}

.validation-warning {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--warning-color, #d97706);
}

.text-success { color: var(--success-color, #10b981) !important; }
.text-warning { color: var(--warning-color, #fbbf24) !important; }
.text-info { color: var(--info-color, #3b82f6) !important; }
.text-error { color: var(--error-color, #ef4444) !important; }

/* Address Options */
.address-options {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-color, #333);
    padding: 0.5rem;
    border-radius: var(--border-radius, 6px);
    transition: background-color 0.2s ease;
}

.checkbox-label:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label .checkmark {
    position: relative;
    width: 18px;
    height: 18px;
    background: transparent;
    border: 2px solid var(--border-color, #d1d5db);
    border-radius: 3px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color, #228b22);
    border-color: var(--primary-color, #228b22);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Service Address Fields Section */
#service-address-fields {
    background: var(--glass-background, rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg, 12px);
    padding: 2rem;
    margin-bottom: 2rem;
}

#service-address-fields .section-header h3 {
    color: var(--text-color, #333);
}

/* Loading states for address inputs */
.address-input-container.loading .form-control {
    background-image: url("data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3e%3cg fill='none' fill-rule='evenodd'%3e%3cg fill='%23666' fill-opacity='0.4'%3e%3cpath d='M10 3v3l-1 1h2l-1-1V3a7 7 0 1 1-7 7H1a9 9 0 1 0 9-9z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 16px;
    animation: spin 1s linear infinite;
}

/* Focus states for address inputs */
.address-input-container .form-control:focus + .address-suggestions {
    border-color: var(--primary-color, #228b22);
}

/* Address field icons */
.address-field-group .form-label i.fa-arrow-up {
    color: var(--success-color, #10b981);
}

.address-field-group .form-label i.fa-arrow-down {
    color: var(--primary-color, #228b22);
}

/* Animation for address validation */
.address-validation > div {
    animation: slideInDown 0.3s ease-out;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .quote-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .glass-card.quote-form-card {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .form-progress {
        position: static;
        margin-top: 2rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
}

.quote-landing {
    padding: 2rem 0;
}

.quote-landing__header {
    text-align: center;
    margin-bottom: 2rem;
}

.quote-landing__title {
    font-family: var(--font-headings, 'Poppins', sans-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color, #333);
    margin-bottom: 0.5rem;
}

.quote-landing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.quote-service-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.quote-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color, #228b22);
}

.quote-service-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.quote-service-card__title {
    font-family: var(--font-headings, 'Poppins', sans-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color, #333);
    margin: 0 0 0.5rem 0;
}

.quote-service-card__description {
    color: var(--text-light, #666);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Quote Display */
.quote-display {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(34, 139, 34, 0.3);
}

.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.quote-header h4 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quote-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.quote-loading {
    display: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Quote Breakdown */
#quote-breakdown-container {
    margin-bottom: 1.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-primary);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-label {
    font-size: 0.95rem;
}

.breakdown-amount {
    font-weight: 600;
    font-family: monospace;
}

/* Quote Total */
.quote-total {
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    padding-top: 1rem;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.total-amount {
    font-family: monospace;
    font-size: 1.5rem;
}

/* Quote Recommendations */
.quote-recommendations {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.recommendation {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.recommendation i {
    color: #ffd700;
    flex-shrink: 0;
}

/* Quote Error */
.quote-error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffcccb;
    font-size: 0.95rem;
}

.quote-error i {
    color: #ff6b6b;
}

/* Route Display */
.route-display {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-color);
}

.route-display h4 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.route-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.route-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(34, 139, 34, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(34, 139, 34, 0.1);
}

.route-stat strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.route-stat span {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Route Warnings */
.route-warnings {
    margin-top: 1rem;
}

.route-warning {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.route-warning.warning-toll {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.route-warning.warning-congestion {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.route-warning i {
    flex-shrink: 0;
}

/* Service Cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-card {
    background: var(--glass-background);
    backdrop-filter: blur(20px);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.service-card.active {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(34, 139, 34, 0.2);
}

.service-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Dynamic Form Fields */
#dynamic-service-fields {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Item Cards */
.item-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.item-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-card h5 i {
    color: var(--primary-color);
}

.item-number {
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Form Validation */
.form-control.field-error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.validation-message {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    min-height: 1.2em;
}

.validation-message.error {
    color: #e53e3e;
}

/* Validated Address Display */
.validated-address {
    background: rgba(34, 139, 34, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 0.5rem;
    animation: slideIn 0.3s ease-out;
}

.validated-address .address-text {
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.validated-address .address-text::before {
    content: '\f3c5';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.5);
}

.file-upload:hover,
.file-upload.dragover {
    border-color: var(--primary-color);
    background: rgba(34, 139, 34, 0.05);
}

.file-upload i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    animation: slideIn 0.3s ease-out;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-remove {
    color: #e53e3e;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: var(--transition);
}

.file-remove:hover {
    background: rgba(229, 62, 62, 0.1);
    transform: scale(1.1);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--background-secondary);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Additional Services Section */
.drivers-mate-section {
    background: var(--background-secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.drivers-mate-section h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.drivers-mate-section label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: normal;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.drivers-mate-section label:hover {
    background: rgba(34, 139, 34, 0.05);
}

.drivers-mate-section input[type="checkbox"] {
    transform: scale(1.2);
    accent-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .route-overview {
        grid-template-columns: 1fr;
    }
    
    .quote-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .breakdown-item {
        font-size: 0.9rem;
    }
    
    .total-line {
        font-size: 1.1rem;
    }
    
    .total-amount {
        font-size: 1.3rem;
    }
}

/* Vehicle Selection Grid */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.vehicle-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.vehicle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vehicle-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
}

.vehicle-card:hover::before {
    opacity: 1;
}

.vehicle-card.selected {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color, #667eea);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.vehicle-icon {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color, #667eea);
    margin-bottom: 1rem;
}

.vehicle-info {
    flex: 1;
}

.vehicle-info h4 {
    font-family: var(--font-headings, 'Poppins', sans-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    text-align: center;
}

.vehicle-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: center;
}

.vehicle-specs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
}

.spec-item i {
    color: var(--primary-color, #667eea);
}

.vehicle-rate {
    text-align: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.rate-amount {
    color: var(--primary-color, #667eea);
    font-weight: 700;
    font-size: 1.3rem;
}

.rate-period {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-left: 0.3rem;
}

.vehicle-select {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.vehicle-select input[type="radio"] {
    display: none;
}

.vehicle-select label {
    cursor: pointer;
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
}

.vehicle-select .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.vehicle-select input[type="radio"]:checked ~ label .checkmark {
    background: var(--primary-color, #667eea);
    border-color: var(--primary-color, #667eea);
}

.vehicle-select .checkmark::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.vehicle-select input[type="radio"]:checked ~ label .checkmark::after {
    opacity: 1;
    transform: scale(1);
}

.no-vehicles {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    font-style: italic;
}

.no-vehicles i {
    font-size: 3rem;
    color: var(--warning-color, #f39c12);
    margin-bottom: 1rem;
}

/* Quote status styling */
.status-partial {
    color: var(--warning-color, #f39c12) !important;
}

.cost-note {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color, #667eea);
}

.cost-note small {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Animations for better UX */
.quote-display,
.route-display,
.vehicle-card {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for vehicle cards */
@media (max-width: 768px) {
    .vehicle-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .vehicle-specs {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .rate-amount {
        font-size: 1.1rem;
    }
}