/* =====================================================
   Quote Page Specific Styles
   ===================================================== */

/* Quote Hero Section */
.quote-hero {
    background: var(--gradient-midnight);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.quote-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.quote-hero-content p {
    font-size: 1.25rem;
    color: var(--neutral-200);
}

/* Quote Container */
.quote-section {
    padding: 60px 0;
    background: var(--neutral-50);
    min-height: 80vh;
}

.quote-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    padding: 3rem;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--neutral-200);
    z-index: 0;
}

.progress-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--neutral-200);
    color: var(--neutral-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 600;
    transition: all var(--transition-base);
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: var(--gradient-gold);
    color: var(--dark-primary);
}

.step-label {
    font-size: 0.875rem;
    color: var(--neutral-600);
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--primary-900);
    font-weight: 600;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

.form-step h2 {
    margin-bottom: 2rem;
    color: var(--primary-900);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--neutral-700);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.address-detail {
    margin-top: 0.5rem;
    background: var(--neutral-50);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Map Containers */
.map-container {
    height: 200px;
    margin-top: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: none;
}

.map-container.active {
    display: block;
}

/* Address List */
.address-list {
    max-height: 250px;
    overflow-y: auto;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    display: none;
    background: white;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    position: relative;
}

.address-list.active {
    display: block;
}

.address-item {
    padding: 0.875rem;
    border-bottom: 1px solid var(--neutral-100);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 0.95rem;
}

.address-item:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}

.address-item.selected {
    background: var(--primary-100);
    font-weight: 500;
}

.address-item:last-child {
    border-bottom: none;
}

/* Loading state */
.address-list .loading {
    text-align: center;
    color: var(--neutral-500);
    padding: 1rem;
}

/* Vehicle and Service Cards */
.vehicle-options,
.duration-options,
.helper-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.vehicle-card,
.duration-card,
.helper-card {
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vehicle-card:hover,
.duration-card:hover,
.helper-card:hover {
    border-color: var(--primary-300);
    transform: translateY(-2px);
}

.vehicle-card.selected,
.duration-card.selected,
.helper-card.selected {
    border-color: var(--primary-500);
    background: var(--primary-50);
    box-shadow: var(--shadow-md);
}

.vehicle-card img {
    width: 150px;
    height: 100px;
    margin-bottom: 1.5rem;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter var(--transition-base);
}

.vehicle-card:hover img,
.vehicle-card.selected img {
    filter: grayscale(0%);
}

.vehicle-card h3,
.duration-card h4,
.helper-card h4 {
    margin-bottom: 0.75rem;
    color: var(--primary-900);
    font-size: 1.5rem;
}

.vehicle-card p,
.duration-card p,
.helper-card p {
    color: var(--neutral-600);
    margin: 0;
    font-size: 1rem;
}

.capacity {
    display: block;
    font-size: 0.875rem;
    color: var(--neutral-500);
    margin-top: 0.5rem;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.time-slot {
    padding: 0.75rem;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.time-slot:hover {
    border-color: var(--primary-300);
}

.time-slot.selected {
    border-color: var(--primary-500);
    background: var(--primary-50);
    color: var(--primary-700);
    font-weight: 600;
}

/* Packing Materials */
.packing-materials {
    background: var(--neutral-50);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.material-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.material-item label {
    font-weight: 500;
    color: var(--neutral-700);
}

.material-item input[type="number"] {
    width: 80px;
    padding: 0.5rem;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    text-align: center;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--neutral-200);
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-prev {
    background: transparent;
    color: var(--neutral-600);
    border: 2px solid var(--neutral-300);
}

.btn-prev:hover {
    border-color: var(--neutral-400);
    color: var(--neutral-700);
}

.btn-next,
.btn-submit {
    background: var(--gradient-gold);
    color: var(--dark-primary);
    margin-left: auto;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* Quote Summary */
.quote-summary {
    background: var(--neutral-50);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.summary-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--neutral-200);
}

.summary-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-900);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--neutral-700);
}

.summary-item span:first-child {
    font-weight: 500;
}

/* Price Breakdown */
.price-breakdown {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 2rem;
}

.price-breakdown h3 {
    margin-bottom: 1rem;
    color: var(--primary-900);
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--neutral-100);
}

.price-subtotal {
    font-weight: 600;
    color: var(--neutral-700);
    border-bottom: 2px solid var(--neutral-200);
    margin-bottom: 0.5rem;
}

.price-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 2px solid var(--primary-200);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-900);
}

.price-total span:last-child {
    color: var(--secondary-600);
}

/* Responsive */
@media (max-width: 768px) {
    .quote-container {
        padding: 2rem 1.5rem;
    }
    
    .progress-bar {
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .vehicle-options,
    .duration-options,
    .helper-options {
        grid-template-columns: 1fr;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-navigation {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .btn-prev,
    .btn-next,
    .btn-submit {
        flex: 1;
        min-width: 150px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error);
}

.error-message {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Important Notice Box */
.important-notice {
    background: linear-gradient(135deg, var(--primary-50) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 2px solid var(--primary-300);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.important-notice::before {
    content: '⚠️';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 100px;
    opacity: 0.1;
}

.important-notice h4 {
    color: var(--primary-900);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.important-notice h4::before {
    content: '📋';
    font-size: 1.5rem;
}

.important-notice ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.important-notice li {
    color: var(--neutral-700);
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.important-notice li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-500);
    font-size: 1.5rem;
    line-height: 1.2;
}

.important-notice li strong {
    color: var(--primary-800);
    font-weight: 600;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: all var(--transition-base);
}

.terms-checkbox:hover {
    border-color: var(--primary-300);
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 0.125rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-600);
}

.terms-checkbox label {
    flex: 1;
    font-weight: 600;
    color: var(--primary-900);
    cursor: pointer;
    font-size: 1rem;
}

.terms-checkbox.error {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.terms-checkbox.error label {
    color: var(--error);
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 2rem;
    animation: fadeIn 0.5s ease;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.success-message h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.success-message p {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
}

.success-message p:last-child {
    margin-bottom: 0;
}