/* ===========================================
   CONTACT FORM WIZARD - TravelixTransport
   =========================================== */

:root {
    --wizard-primary: var(--primary-color, #2563eb);
    --wizard-primary-dark: var(--secondary-color, #1e40af);
    --wizard-success: #10b981;
    --wizard-error: #ef4444;
    --wizard-bg: #ffffff;
    --wizard-bg-light: #f8fafc;
    --wizard-border: #e2e8f0;
    --wizard-text: #1e293b;
    --wizard-text-light: #64748b;
    --wizard-radius: 12px;
    --wizard-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --wizard-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Container */
.wizard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.wizard-card {
    background: var(--wizard-bg);
    border-radius: var(--wizard-radius);
    box-shadow: var(--wizard-shadow-lg);
    overflow: hidden;
}

/* Header */
.wizard-header {
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-primary-dark) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.wizard-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.wizard-header p {
    opacity: 0.9;
    font-size: 1rem;
}

/* Progress Steps */
.wizard-progress {
    display: flex;
    justify-content: center;
    padding: 1.5rem 2rem;
    background: var(--wizard-bg-light);
    border-bottom: 1px solid var(--wizard-border);
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wizard-step-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    background: var(--wizard-border);
    color: var(--wizard-text-light);
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.875rem;
    color: var(--wizard-text-light);
    display: none;
}

@media (min-width: 768px) {
    .step-label {
        display: block;
    }
}

.wizard-step-indicator.active .step-number {
    background: var(--wizard-primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.wizard-step-indicator.active .step-label {
    color: var(--wizard-primary);
    font-weight: 600;
}

.wizard-step-indicator.completed .step-number {
    background: var(--wizard-success);
    color: white;
}

.wizard-step-indicator.completed .step-label {
    color: var(--wizard-success);
}

.step-connector {
    width: 40px;
    height: 2px;
    background: var(--wizard-border);
    margin: 0 0.25rem;
}

.step-connector.active {
    background: var(--wizard-success);
}

/* Form Body */
.wizard-body {
    padding: 2rem;
}

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

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

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

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--wizard-text);
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--wizard-text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Form Fields */
.wizard-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .wizard-fields {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .field-full {
        grid-column: span 2;
    }
    
    .field-half {
        grid-column: span 1;
    }
    
    .field-third {
        grid-column: span 1;
    }
}

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

.form-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wizard-text);
    margin-bottom: 0.5rem;
}

.form-field label .required {
    color: var(--wizard-error);
    margin-left: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--wizard-text);
    background: var(--wizard-bg-light);
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    background: var(--wizard-bg);
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--wizard-text-light);
    opacity: 0.7;
}

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

.form-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* Radio & Checkbox */
.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-option input,
.checkbox-option input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--wizard-primary);
}

.radio-option span,
.checkbox-option span {
    font-size: 0.95rem;
    color: var(--wizard-text);
}

/* Field Help Text */
.field-help {
    font-size: 0.8rem;
    color: var(--wizard-text-light);
    margin-top: 0.25rem;
}

/* Field Error */
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
    border-color: var(--wizard-error);
    background: #fef2f2;
}

.field-error {
    font-size: 0.8rem;
    color: var(--wizard-error);
    margin-top: 0.25rem;
}

/* Navigation Buttons */
.wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--wizard-bg-light);
    border-top: 1px solid var(--wizard-border);
}

.wizard-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.wizard-btn-prev {
    background: var(--wizard-bg);
    color: var(--wizard-text-light);
    border: 2px solid var(--wizard-border);
}

.wizard-btn-prev:hover {
    background: var(--wizard-bg-light);
    border-color: var(--wizard-text-light);
}

.wizard-btn-next,
.wizard-btn-submit {
    background: var(--wizard-primary);
    color: white;
}

.wizard-btn-next:hover,
.wizard-btn-submit:hover {
    background: var(--wizard-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--wizard-shadow);
}

.wizard-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.wizard-btn-submit {
    background: var(--wizard-success);
}

.wizard-btn-submit:hover {
    background: #059669;
}

/* Simple Form (non-wizard) */
.simple-form .wizard-progress {
    display: none;
}

.simple-form .wizard-footer {
    justify-content: flex-end;
}

/* Success Message */
.wizard-success {
    text-align: center;
    padding: 3rem 2rem;
}

.wizard-success-icon {
    width: 80px;
    height: 80px;
    background: var(--wizard-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.wizard-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wizard-text);
    margin-bottom: 0.75rem;
}

.wizard-success p {
    color: var(--wizard-text-light);
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Loading State */
.wizard-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.wizard-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 640px) {
    .wizard-container {
        padding: 1rem;
    }
    
    .wizard-header {
        padding: 1.5rem;
    }
    
    .wizard-body {
        padding: 1.5rem;
    }
    
    .wizard-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .wizard-btn {
        width: 100%;
        justify-content: center;
    }
}