/* Quote Wizard Styles */
.quote-wizard {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wizard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.wizard-header h2 {
    color: #0A2B4C;
    margin-bottom: 0.5rem;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.progress-step::before {
    content: attr(data-step);
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    background: #e0e0e0;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.progress-step.active::before {
    background: #D4AF37;
    color: white;
}

.progress-step.completed::before {
    background: #4CAF50;
    color: white;
    content: "✓";
}

.wizard-step {
    display: none;
    animation: fadeIn 0.3s;
}

.wizard-step.active {
    display: block;
}

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

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

.service-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    border-color: #D4AF37;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.service-card.selected {
    border-color: #D4AF37;
    background: linear-gradient(135deg, #f9f7f4 0%, #fff 100%);
}

.service-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.service-icon {
    font-size: 2rem;
    color: #D4AF37;
    margin-bottom: 0.5rem;
}

.service-price {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.frequency-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.frequency-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.frequency-card:hover {
    border-color: #D4AF37;
}

.frequency-card.selected {
    border-color: #D4AF37;
    background: linear-gradient(135deg, #f9f7f4 0%, #fff 100%);
}

.frequency-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.discount-badge {
    background: #4CAF50;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: inline-block;
}

.address-input-group {
    margin-bottom: 1.5rem;
}

.address-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.address-input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px; /* Prevents zoom on iOS */
}

.apartment-toggle {
    margin-top: 1rem;
}

.apartment-input {
    margin-top: 1rem;
    display: none;
}

.apartment-input.show {
    display: block;
}

#map {
    height: 300px;
    margin-top: 1rem;
    border-radius: 8px;
    display: none;
}

#map.show {
    display: block;
}

.size-slider-container {
    margin: 2rem 0;
}

.size-display {
    text-align: center;
    margin-bottom: 1rem;
}

.size-value {
    font-size: 2rem;
    color: #0A2B4C;
    font-weight: bold;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #D4AF37;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #D4AF37;
    cursor: pointer;
}

.size-hints {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

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

.addon-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* Critical fix for addon cards */
.addon-card > * {
    z-index: 0;
}

.addon-card:hover {
    border-color: #D4AF37;
    transform: translateY(-2px);
}

.addon-card.selected {
    border-color: #D4AF37;
    background: linear-gradient(135deg, #f9f7f4 0%, #fff 100%);
}

.addon-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.addon-price {
    color: #4CAF50;
    font-weight: bold;
    margin-top: 0.5rem;
}

.carpet-size-options {
    margin-top: 1rem;
    display: none;
}

.carpet-size-options.show {
    display: block;
}

.price-breakdown {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.price-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.price-total {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0A2B4C;
    border-top: 2px solid #ddd;
    padding-top: 1rem;
    margin-top: 1rem;
}

.savings-badge {
    background: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-form-group {
    margin-bottom: 1.5rem;
}

.contact-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.contact-form-group input,
.contact-form-group textarea,
.contact-form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.contact-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.wizard-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.wizard-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-previous {
    background: #e0e0e0;
    color: #333;
}

.btn-previous:hover {
    background: #ccc;
}

.btn-next {
    background: #D4AF37;
    color: white;
}

.btn-next:hover {
    background: #b8941f;
}

.btn-submit {
    background: #4CAF50;
    color: white;
}

.btn-submit:hover {
    background: #45a049;
}

.error-message {
    color: #f44336;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

.submission-success {
    text-align: center;
    padding: 3rem;
}

.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.success-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .wizard-buttons {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .wizard-btn {
        width: 100%;
    }
}

/* Loading spinner */
.spinner {
    display: none;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #D4AF37;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

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

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Loading message */
.loading-message {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 16px;
}

.error-message {
    color: #dc3545;
    padding: 20px;
    text-align: center;
    background: #f8d7da;
    border-radius: 8px;
    margin: 20px 0;
}
