/* ========================================
   WIZARD STYLES - Multi-step Forms
   ======================================== */

/* Wizard Container */
.wizard-container {
    background: var(--bg-light);
    min-height: calc(100vh - 140px);
    padding: 40px 20px;
}

.wizard-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Mockup Preview - Hidden */
.mockup-preview {
    display: none;
}

/* Progress Bar */
.progress-bar {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border);
    z-index: 0;
}

.progress-line {
    position: absolute;
    top: 20px;
    left: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 8px;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.step.active .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.step.completed .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

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

/* Form Panel */
.form-panel {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wizard-step {
    display: none;
}

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

.panel-title {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.panel-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.info-box {
    background: rgba(5, 97, 95, 0.05);
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-label.required::after {
    content: '*';
    color: var(--secondary);
    margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 97, 95, 0.1);
}

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

.form-textarea-compact {
    resize: vertical;
    min-height: 80px;
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-textarea-compact:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 97, 95, 0.1);
}

.form-input-file {
    width: 100%;
    padding: 10px;
    border: 2px dashed var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.form-input-file:hover {
    border-color: var(--primary);
    background: rgba(5, 97, 95, 0.02);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 6px;
}

/* Radio Options */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-group-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.radio-option-compact {
    position: relative;
    padding: 15px 20px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.radio-option-compact:hover {
    border-color: var(--primary);
    background: rgba(5, 97, 95, 0.02);
}

.radio-option-compact input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-option-compact input[type="radio"]:checked ~ .radio-content {
    color: var(--primary);
}

.radio-option-compact input[type="radio"]:checked {
    accent-color: var(--primary);
}

.radio-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.radio-content strong {
    font-size: 1rem;
    color: var(--text-dark);
}

.radio-content small {
    font-size: 0.85rem;
    color: var(--text-light);
}

.radio-option {
    position: relative;
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: var(--primary);
    background: rgba(5, 97, 95, 0.02);
}

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

.radio-option input[type="radio"]:checked + .radio-label {
    color: var(--primary);
}

.radio-option input[type="radio"]:checked ~ .radio-option {
    border-color: var(--primary);
    background: rgba(5, 97, 95, 0.05);
}

.radio-label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.radio-description {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: var(--primary);
    background: rgba(5, 97, 95, 0.02);
}

.file-upload input[type="file"] {
    display: none;
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--primary);
}

.upload-text {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Price Calculator */
.price-calculator {
    background: rgba(5, 97, 95, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.price-summary {
    background: rgba(5, 97, 95, 0.05);
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 20px;
}

.price-summary .price-row,
.price-calculator .price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.price-summary .price-row:last-child,
.price-calculator .price-row:last-child {
    margin-bottom: 0;
}

.price-summary .price-row.total {
    padding-top: 12px;
    border-top: 2px solid var(--border);
    margin-top: 8px;
    color: var(--primary);
    font-size: 1.1rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.price-label {
    color: var(--text-dark);
}

.price-value {
    font-weight: 600;
    color: var(--primary);
}

.price-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 15px 0;
}

.price-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
}

.price-total .price-value {
    color: var(--primary);
}

.discount-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.5;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Mockup Preview */
.mockup-preview {
    position: sticky;
    top: 100px;
}

.phone-mockup {
    background: #1a1a1a;
    border-radius: 40px;
    padding: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.phone-screen {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 9/19.5;
}

.mockup-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    padding: 16px;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.mockup-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.mockup-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Summary Table */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.summary-table th,
.summary-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.summary-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

.summary-table td {
    color: var(--text-dark);
}

/* Alert Messages */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-info {
    background: rgba(5, 97, 95, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #2e7d32;
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-container {
        padding: 0;
    }

    .wizard-container .container {
        padding: 0;
    }

    .form-panel {
        padding: 24px;
    }

    .panel-title {
        font-size: 1.5rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
    }
}
