/* AGB Form Wizard - Frontend Styles */

/* ── Wrapper ─────────────────────────────────── */
.agb-form-wizard-wrapper {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    max-width: 600px;
    margin: 32px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    color: #1e293b;
}

/* ── Loading state ───────────────────────────── */
.agb-wizard-loading {
    padding: 60px 40px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9375rem;
}

/* ── Fade-in animation ───────────────────────── */
.agb-fade-in {
    animation: agbFadeIn 0.3s ease-out;
}

@keyframes agbFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Green accent bar (top of card) ─────────── */
.agb-step-accent {
    height: 4px;
    background: linear-gradient(90deg, #34a853 0%, #2d9a4a 100%);
}

/* ── Step body ───────────────────────────────── */
.agb-step-body {
    padding: 28px 32px 0;
}

/* ── Question block ──────────────────────────── */
.agb-question-block {
    margin-bottom: 24px;
}

.agb-question-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px;
    line-height: 1.5;
}

.agb-question-desc {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0 0 14px;
    line-height: 1.5;
}

/* ── Field label (inside question block) ─────── */
.agb-field-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 6px;
}

/* ── Text / Textarea / Select ────────────────── */
.agb-text-input,
.agb-textarea-input,
.agb-select-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.agb-textarea-input {
    resize: vertical;
    min-height: 96px;
}

.agb-select-input {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%2364748b" d="M6 8L0 0h12z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.agb-text-input:focus,
.agb-textarea-input:focus,
.agb-select-input:focus {
    border-color: #34a853;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.12);
}

/* ── Field row spacing ───────────────────────── */
.agb-field-row {
    margin-bottom: 14px;
}

.agb-field-row:last-child {
    margin-bottom: 0;
}

/* ── Char counter ────────────────────────────── */
.agb-char-count {
    text-align: right;
    font-size: 0.6875rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* ── Radio & Checkbox ────────────────────────── */
.agb-radio-label,
.agb-checkbox-label {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    margin-bottom: 8px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    background: #ffffff;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #334155;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}

.agb-radio-label:last-child,
.agb-checkbox-label:last-child {
    margin-bottom: 0;
}

.agb-radio-label:hover,
.agb-checkbox-label:hover {
    border-color: #86efac;
    background: #f0fdf4;
}

.agb-radio-label.selected,
.agb-checkbox-label.selected {
    border-color: #34a853;
    background: #f0fdf4;
    color: #166534;
    font-weight: 500;
}

.agb-radio-label input[type="radio"],
.agb-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 12px 0 0;
    flex-shrink: 0;
    accent-color: #34a853;
    cursor: pointer;
}

/* ── Navigation / Actions ────────────────────── */
.agb-wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px 28px;
    margin-top: 4px;
}

/* ── Buttons ─────────────────────────────────── */
.agb-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    border: none;
}

.agb-btn-primary {
    background: #34a853;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(52, 168, 83, 0.28);
}

.agb-btn-primary:hover {
    background: #2d9a4a;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(52, 168, 83, 0.35);
}

.agb-btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.agb-btn-secondary {
    background: transparent;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    padding: 9px 20px;
}

.agb-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

/* ── Review screen ───────────────────────────── */
.agb-review-screen {
    padding: 40px 32px;
    text-align: center;
}

.agb-review-icon {
    width: 72px;
    height: 72px;
    background: #dcfce7;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agb-review-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.agb-review-desc {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0 0 28px;
}

.agb-review-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* ── Success screen ──────────────────────────── */
.agb-success-screen {
    padding: 60px 32px;
    text-align: center;
    animation: agbFadeIn 0.4s ease-out;
}

.agb-success-icon {
    width: 88px;
    height: 88px;
    background: #dcfce7;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: agbPopIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes agbPopIn {
    0%   { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}

.agb-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
}

.agb-success-desc {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ── Error state ─────────────────────────────── */
.agb-error {
    padding: 40px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9375rem;
}
