/* FeG WLAN Self-Service – CI passend zum UniFi Portal */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ink:    #26AAE1;
    --ink2:   #1a8fc4;
    --dark:   #1a1a18;
    --red:    #e53e3e;
    --green:  #38a169;
    --amber:  #f59e0b;
    --bg:     #f4f7fa;
    --white:  #ffffff;
    --rule:   #e2e8f0;
    --radius: 6px;
    --shadow: 0 2px 12px rgba(0,0,0,.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--dark);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
}

/* ── Header ──────────────────────────────────────────────────────────────────*/
.site-header {
    background: var(--dark);
    color: #fff;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.site-header img { height: 32px; }
.site-header .site-title { font-size: 15px; font-weight: 600; opacity: .85; }

/* ── Wrapper ─────────────────────────────────────────────────────────────────*/
.container {
    max-width: 680px;
    margin: 40px auto;
    padding: 0 16px 60px;
}

/* ── Stepper ─────────────────────────────────────────────────────────────────*/
.stepper {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    counter-reset: step;
}
.step-item {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    max-width: 180px;
}
.step-dot {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--rule);
    color: #999;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}
.step-item.active  .step-dot { background: var(--ink); color: #fff; }
.step-item.done    .step-dot { background: var(--green); color: #fff; }
.step-line {
    flex: 1; height: 2px; background: var(--rule);
}
.step-item.done + .step-item .step-line,
.step-item.done .step-line { background: var(--green); }

/* ── Card ────────────────────────────────────────────────────────────────────*/
.card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-header {
    background: var(--ink);
    color: #fff;
    padding: 18px 24px;
}
.card-header h1 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.card-header p  { font-size: 13px; opacity: .85; }
.card-body { padding: 28px 24px; }

/* ── Agreement ───────────────────────────────────────────────────────────────*/
.agreement-box {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 16px 20px;
    max-height: 280px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.7;
    color: #444;
    background: #fafafa;
    margin-bottom: 20px;
}
.agreement-box p  { margin-bottom: 10px; }
.agreement-box strong { color: var(--dark); }

/* ── Form ────────────────────────────────────────────────────────────────────*/
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-row.single { grid-template-columns: 1fr; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-label { font-size: 13px; font-weight: 600; color: #555; }
.form-label .req { color: var(--red); margin-left: 2px; }

input[type=text], input[type=email], input[type=tel],
textarea, select {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 9px 12px;
    font-size: 14px;
    color: var(--dark);
    background: #fff;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(38,170,225,.12);
}
textarea { resize: vertical; min-height: 80px; }

/* ── Type Cards (A/B/C) ──────────────────────────────────────────────────────*/
.type-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.type-card {
    border: 2px solid var(--rule);
    border-radius: 8px;
    padding: 16px 18px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    position: relative;
}
.type-card input[type=radio] { position: absolute; opacity: 0; }
.type-card:has(input:checked),
.type-card.selected {
    border-color: var(--ink);
    background: rgba(38,170,225,.05);
}
.type-card-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
    cursor: pointer;
}
.type-badge {
    background: var(--dark);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    flex-shrink: 0;
}
.type-card p { font-size: 13px; color: #555; margin-top: 4px; }
.type-card .note {
    font-size: 12px;
    color: var(--amber);
    margin-top: 8px;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}
.type-detail { margin-top: 12px; display: none; }
.type-card.selected .type-detail,
.type-card:has(input:checked) .type-detail { display: block; }

/* ── Checkbox ────────────────────────────────────────────────────────────────*/
.check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}
.check-label input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--ink); }

/* ── Buttons ─────────────────────────────────────────────────────────────────*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-primary   { background: var(--ink);   color: #fff; }
.btn-primary:hover { background: var(--ink2); }
.btn-success   { background: var(--green); color: #fff; }
.btn-danger    { background: var(--red);   color: #fff; }
.btn-outline   { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-full      { width: 100%; }
.btn-lg        { padding: 14px 28px; font-size: 15px; }

/* ── Alerts ──────────────────────────────────────────────────────────────────*/
.alert { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #f0fff4; border: 1px solid #9ae6b4; color: #276749; }
.alert-danger  { background: #fff5f5; border: 1px solid #feb2b2; color: #c53030; }
.alert-info    { background: #ebf8ff; border: 1px solid #90cdf4; color: #2b6cb0; }
.alert-warning { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }

/* ── Success Page ────────────────────────────────────────────────────────────*/
.success-icon {
    width: 72px; height: 72px;
    background: var(--green);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #fff;
}
.voucher-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 6px;
    text-align: center;
    padding: 20px;
    background: rgba(38,170,225,.08);
    border: 2px solid var(--ink);
    border-radius: 8px;
    color: var(--dark);
    margin: 16px 0;
}
.meta-row { display: flex; justify-content: space-between; font-size: 13px; color: #666; padding: 5px 0; border-bottom: 1px solid var(--rule); }
.meta-row:last-child { border: none; }
.meta-row strong { color: var(--dark); }

/* ── Footer ──────────────────────────────────────────────────────────────────*/
.site-footer {
    text-align: center;
    font-size: 12px;
    color: #999;
    padding: 20px;
}
.site-footer a { color: #999; text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
