/* ============================================================
   ms-anfrage-wizard — Styles
   ============================================================ */

.ms-wizard-wrap {
    max-width: 680px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

/* --- Progress bar --- */
.ms-wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    gap: 0;
}

.ms-wizard-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ms-wizard-step-dot .dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
}

.ms-wizard-step-dot .label {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    transition: color 0.3s;
}

.ms-wizard-step-dot.active .dot {
    background: #0076bb;
    color: #fff;
}

.ms-wizard-step-dot.active .label {
    color: #0076bb;
    font-weight: 700;
}

.ms-wizard-step-dot.done .dot {
    background: #0076bb;
    color: #fff;
}

.ms-wizard-step-dot.done .label {
    color: #0076bb;
}

.ms-wizard-connector {
    height: 2px;
    width: 60px;
    background: #e0e0e0;
    margin-bottom: 22px;
    transition: background 0.3s;
}

.ms-wizard-connector.done {
    background: #0076bb;
}

/* --- Card --- */
.ms-wizard-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 32px 36px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

@media (max-width: 600px) {
    .ms-wizard-card {
        padding: 24px 18px;
    }
}

.ms-wizard-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0076bb;
}

/* --- Steps visibility --- */
.ms-wizard-step {
    display: none;
}

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

/* --- Form fields --- */
.ms-wizard-field {
    margin-bottom: 18px;
}

.ms-wizard-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.ms-wizard-field .ms-hint {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
    margin-top: 3px;
}

.ms-wizard-field input[type="text"],
.ms-wizard-field input[type="email"],
.ms-wizard-field input[type="tel"],
.ms-wizard-field select,
.ms-wizard-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
    appearance: auto;
}

.ms-wizard-field input:focus,
.ms-wizard-field select:focus,
.ms-wizard-field textarea:focus {
    outline: none;
    border-color: #0076bb;
    box-shadow: 0 0 0 3px rgba(0,118,187,.12);
}

.ms-wizard-field input.ms-error,
.ms-wizard-field select.ms-error,
.ms-wizard-field textarea.ms-error {
    border-color: #dc2626;
}

.ms-wizard-field textarea {
    min-height: 140px;
    resize: vertical;
}

.ms-wizard-field input[type="file"] {
    padding: 8px 0;
    font-size: 13px;
    border: none;
}

.ms-field-error {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
    display: none;
}

.ms-field-error.visible {
    display: block;
}

/* --- Checkboxes --- */
.ms-wizard-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #374151;
}

.ms-wizard-check input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #0076bb;
}

.ms-wizard-check a {
    color: #0076bb;
    text-decoration: underline;
}

/* --- Buttons --- */
.ms-wizard-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    gap: 12px;
}

.ms-btn {
    padding: 11px 26px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, opacity 0.2s;
}

.ms-btn-primary {
    background: #0076bb;
    color: #fff;
}

.ms-btn-primary:hover {
    background: #005f99;
}

.ms-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.ms-btn-secondary:hover {
    background: #e5e7eb;
}

.ms-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* --- Success / Error message --- */
.ms-wizard-message {
    display: none;
    padding: 18px 20px;
    border-radius: 6px;
    font-size: 15px;
    margin-top: 20px;
    text-align: center;
}

.ms-wizard-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.ms-wizard-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
