/* =====================================================
   VDP Anmeldungs-Formular – Frontend Styles
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.vdp-form {
    font-family: 'Inter', sans-serif;
    max-width: 760px;
    margin: 0 auto;
    color: #1a1a2e;
}

/* ── Progress Bar ──────────────────────────────────── */
.vdp-progress {
    display: flex;
    align-items: center;
    margin-bottom: 36px;
    gap: 0;
}

.vdp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #aaa;
    min-width: 80px;
}

.vdp-step > :first-child {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    transition: all .3s;
}

.vdp-step span {
    font-size: 11px;
    text-align: center;
    color: #aaa;
}

.vdp-step-active > :first-child {
    background: #c0392b;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(192,57,43,.18);
}

.vdp-step-active span { color: #c0392b; font-weight: 600; }

.vdp-step-done > :first-child {
    background: #27ae60;
    color: #fff;
}
.vdp-step-done span { color: #27ae60; font-weight: 600; }

.vdp-step-line {
    flex: 1;
    height: 3px;
    background: #e8e8e8;
    border-radius: 2px;
    margin: 0 8px;
    margin-bottom: 14px;
}
.vdp-step-line-done { background: #27ae60; }

/* ── Error Box ─────────────────────────────────────── */
.vdp-error-box {
    background: #fdf0ef;
    border: 1px solid #e74c3c;
    border-left: 4px solid #e74c3c;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 14px;
}
.vdp-error-box ul { margin: 8px 0 0 18px; padding: 0; }
.vdp-error-msg {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
}

/* ── Section ───────────────────────────────────────── */
.vdp-section {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.vdp-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #c0392b;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5eeee;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.vdp-day-title {
    font-size: 14px;
    font-weight: 700;
    color: #c0392b;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f5eeee;
}

/* ── Fields ────────────────────────────────────────── */
.vdp-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.vdp-field {
    margin-bottom: 16px;
}
.vdp-field.vdp-full {
    width: 100%;
}

.vdp-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.vdp-req { color: #c0392b; }

.vdp-field input[type="text"],
.vdp-field input[type="email"],
.vdp-field input[type="tel"],
.vdp-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #dde3e9;
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a2e;
    background: #fcfcfd;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.vdp-field input:focus,
.vdp-field select:focus {
    outline: none;
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192,57,43,.12);
    background: #fff;
}

.vdp-field-error input,
.vdp-field-error select {
    border-color: #e74c3c !important;
}

/* ── Checkboxes & Radios ───────────────────────────── */
.vdp-checkboxes,
.vdp-radios {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vdp-check,
.vdp-radio {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.vdp-check input[type="checkbox"],
.vdp-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #c0392b;
    cursor: pointer;
}

.vdp-check em {
    font-style: italic;
    color: #888;
    font-size: 13px;
}

.vdp-legal { background: #fafafa; }
.vdp-legal-label {
    align-items: flex-start !important;
    line-height: 1.5 !important;
}
.vdp-legal-label a { color: #c0392b; }

/* ── Actions ───────────────────────────────────────── */
.vdp-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    gap: 12px;
}
.vdp-actions-two {
    justify-content: space-between;
}

.vdp-btn-primary {
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 7px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
}
.vdp-btn-primary:hover { background: #a93226; transform: translateY(-1px); }
.vdp-btn-primary:active { transform: translateY(0); }

.vdp-btn-secondary {
    background: #f0f0f0;
    color: #555;
    border: none;
    padding: 12px 22px;
    border-radius: 7px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.vdp-btn-secondary:hover { background: #e2e2e2; }

/* ── Success ───────────────────────────────────────── */
.vdp-success {
    text-align: center;
    padding: 60px 30px;
    border: 1px solid #d5f5e3;
    border-radius: 12px;
    background: #eafaf1;
}
.vdp-success-icon {
    width: 70px;
    height: 70px;
    background: #27ae60;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
    animation: vdp-pop .4s cubic-bezier(.17,.67,.41,1.3);
}
@keyframes vdp-pop {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.vdp-success h2 { color: #27ae60; margin: 0 0 12px; }
.vdp-success p  { color: #555; font-size: 15px; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 600px) {
    .vdp-field-row {
        grid-template-columns: 1fr;
    }
    .vdp-section {
        padding: 18px 16px;
    }
}
