/* ========================================
   OKPW — Multi-Step Quote Form
   ======================================== */

.quote-form-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(26, 26, 26, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-expo);
    padding: 20px;
}

.quote-form-overlay.active {
    opacity: 1;
    visibility: visible;
}

.quote-form-card {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s var(--ease-out-expo);
}

.quote-form-overlay.active .quote-form-card {
    transform: scale(1) translateY(0);
}

.quote-form-header {
    padding: 32px 32px 0;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}

.quote-form-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-form-close:hover {
    color: var(--charcoal);
}

.quote-form-progress {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    margin-bottom: 24px;
    overflow: hidden;
}

.quote-form-progress-bar {
    height: 100%;
    background: var(--olive);
    border-radius: 3px;
    width: 20%;
    transition: width 0.6s var(--ease-out-expo);
}

.quote-form-step-info {
    text-align: center;
    margin-bottom: 24px;
}

.quote-form-step-number {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--olive);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.quote-form-step-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--charcoal);
    margin: 8px 0 4px;
}

.quote-form-step-subtitle {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.quote-form-content {
    padding: 32px;
}

.quote-form-step {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s var(--ease-out-expo);
}

.quote-form-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.quote-form-step.entering {
    animation: slideInRight 0.4s var(--ease-out-expo) forwards;
}

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

.quote-form-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.quote-form-option {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quote-form-option:hover {
    border-color: var(--olive-light);
    background: rgba(85, 107, 47, 0.05);
}

.quote-form-option.selected {
    border-color: var(--olive);
    background: rgba(85, 107, 47, 0.1);
}

.quote-form-option.selected::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    background: var(--olive);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20,6 9,17 4,12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.quote-form-option-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.quote-form-option-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.quote-form-option-title {
    font-weight: 600;
    color: var(--charcoal);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.quote-form-option-desc {
    color: var(--gray-500);
    font-size: 0.8rem;
    line-height: 1.4;
}

.quote-form-slider {
    margin-bottom: 32px;
}

.quote-form-slider-label {
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 24px;
    text-align: center;
}

.quote-form-slider-input {
    width: 100%;
    margin-bottom: 16px;
}

.quote-form-slider-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray-400);
}

.quote-form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.quote-form-field {
    position: relative;
}

.quote-form-field label {
    display: block;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.quote-form-field input,
.quote-form-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--charcoal);
    transition: border-color 0.3s;
}

.quote-form-field input:focus,
.quote-form-field textarea:focus {
    border-color: var(--olive);
    outline: none;
}

.quote-form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.quote-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 24px 32px;
    border-top: 1px solid var(--gray-200);
}

.quote-form-back {
    background: none;
    border: 2px solid var(--gray-300);
    color: var(--gray-600);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.quote-form-back:hover {
    border-color: var(--gray-400);
    color: var(--charcoal);
}

.quote-form-back:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quote-form-next {
    background: var(--olive);
    border: none;
    color: var(--white);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quote-form-next:hover {
    background: var(--olive-light);
}

.quote-form-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .quote-form-card {
        margin: 10px;
        max-height: 95vh;
    }
    
    .quote-form-options {
        grid-template-columns: 1fr;
    }
    
    .quote-form-step-title {
        font-size: 1.5rem;
    }
    
    .quote-form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .quote-form-back,
    .quote-form-next {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .quote-form-header,
    .quote-form-content {
        padding: 24px 20px;
    }
    
    .quote-form-actions {
        padding: 20px;
    }
}