/* ============================================================
 * Virthalam — Multi-step Registration Form Styles
 * Drops in alongside oxpins.css to style the member &
 * volunteer registration forms. Uses Virthalam color tokens.
 * ============================================================ */

:root {
    --vf-primary: #d29732;          /* template gold/saffron */
    --vf-primary-dark: #b87f24;
    --vf-primary-soft: #fdf6ea;
    --vf-text: #1f2733;
    --vf-muted: #6b7280;
    --vf-border: #e5e7eb;
    --vf-success: #16a34a;
    --vf-danger: #dc2626;
    --vf-warning: #d97706;
}

/* ─── Section wrapper ─────────────────────────────────────── */
.registration-section {
    padding: 80px 0;
    background-color: #fafaf7;
}

.registration-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 40px;
}

@media (max-width: 768px) {
    .registration-card { padding: 24px 18px; }
    .registration-section { padding: 50px 0; }
}

/* ─── Stepper ─────────────────────────────────────────────── */
.vf-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.vf-stepper__step {
    display: flex;
    align-items: center;
    flex: 1;
}

.vf-stepper__step:last-child { flex: none; }

.vf-stepper__circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.vf-stepper__circle--active {
    background: linear-gradient(135deg, var(--vf-primary), var(--vf-primary-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(210, 151, 50, 0.35);
}

.vf-stepper__label {
    font-size: 12px;
    color: var(--vf-muted);
    margin-top: 8px;
    text-align: center;
    font-weight: 500;
}

.vf-stepper__step-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vf-stepper__line {
    flex: 1;
    height: 3px;
    background: #e5e7eb;
    margin: 0 8px;
    transition: background 0.3s ease;
}

.vf-stepper__line--active {
    background: linear-gradient(90deg, var(--vf-primary), var(--vf-primary-dark));
}

.vf-stepper__count {
    text-align: center;
    color: var(--vf-muted);
    font-size: 14px;
    margin-bottom: 30px;
}

@media (max-width: 576px) {
    .vf-stepper__circle { width: 36px; height: 36px; font-size: 14px; }
    .vf-stepper__label { display: none; }
    .vf-stepper__line { margin: 0 4px; }
}

/* ─── Form sections ──────────────────────────────────────── */
.vf-form-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--vf-text);
    padding-bottom: 14px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--vf-primary-soft);
}

.vf-form-section-title small {
    display: block;
    font-size: 14px;
    color: var(--vf-muted);
    font-weight: 400;
    margin-top: 4px;
}

/* ─── Field labels ────────────────────────────────────────── */
.vf-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--vf-text);
    margin-bottom: 8px;
}

.vf-label .req { color: var(--vf-danger); }
.vf-label .hint { color: var(--vf-muted); font-weight: 400; font-size: 12px; }

/* ─── Inputs ──────────────────────────────────────────────── */
.vf-input,
.vf-select,
.vf-textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--vf-text);
    background: #fff;
    border: 1px solid var(--vf-border);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vf-input:focus,
.vf-select:focus,
.vf-textarea:focus {
    border-color: var(--vf-primary);
    box-shadow: 0 0 0 3px rgba(210, 151, 50, 0.15);
    outline: none;
}

.vf-textarea { resize: vertical; min-height: 90px; }

/* Phone with +91 prefix */
.vf-phone-group { display: flex; }
.vf-phone-group .vf-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    background: #f3f4f6;
    border: 1px solid var(--vf-border);
    border-right: 0;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--vf-text);
}
.vf-phone-group .vf-input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ─── Radio "card" group (e.g., role / contribution_type) ─── */
.vf-radio-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 576px) { .vf-radio-cards { grid-template-columns: 1fr; } }

.vf-radio-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 2px solid var(--vf-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.vf-radio-card:hover { border-color: var(--vf-primary); }
.vf-radio-card input { margin-top: 4px; }
.vf-radio-card input:checked + .vf-radio-card__body,
.vf-radio-card:has(input:checked) {
    border-color: var(--vf-primary);
    background: var(--vf-primary-soft);
}
.vf-radio-card__title { font-weight: 600; font-size: 14px; color: var(--vf-text); }
.vf-radio-card__desc  { font-size: 12px; color: var(--vf-muted); margin-top: 2px; }

/* Inline radios (Yes/No, Gender) */
.vf-radio-inline {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 8px;
}
.vf-radio-inline label {
    display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px;
}

.vf-radio-pill {
    display: flex; gap: 12px;
}
.vf-radio-pill > label {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid var(--vf-border);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}
.vf-radio-pill > label:has(input:checked) {
    border-color: var(--vf-primary);
    background: var(--vf-primary-soft);
}

/* Checkbox grid */
.vf-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
@media (max-width: 768px) { .vf-checkbox-grid { grid-template-columns: repeat(2, 1fr); } }

.vf-checkbox-grid > label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--vf-border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}
.vf-checkbox-grid > label:hover { background: #fafafa; }
.vf-checkbox-grid > label:has(input:checked) {
    border-color: var(--vf-primary);
    background: var(--vf-primary-soft);
}

/* ─── File input ──────────────────────────────────────────── */
.vf-file-input {
    width: 100%;
    font-size: 13px;
    color: var(--vf-muted);
    cursor: pointer;
}
.vf-file-input::file-selector-button {
    padding: 8px 16px;
    margin-right: 12px;
    border-radius: 6px;
    border: 0;
    background: var(--vf-primary-soft);
    color: var(--vf-primary-dark);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.vf-file-input::file-selector-button:hover { background: #fbe9ce; }

.vf-file-confirm {
    font-size: 12px;
    color: var(--vf-success);
    margin-top: 6px;
}

/* Profile preview */
.vf-profile-row {
    display: flex; align-items: center; gap: 16px;
}
.vf-profile-thumb {
    width: 96px; height: 96px;
    border-radius: 50%;
    border: 2px dashed var(--vf-border);
    background: #f9fafb;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
}
.vf-profile-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vf-profile-thumb svg { width: 36px; height: 36px; color: #9ca3af; }

.vf-signature-preview {
    margin-top: 12px;
    padding: 12px;
    background: #fafafa;
    border: 1px solid var(--vf-border);
    border-radius: 8px;
    display: inline-block;
}
.vf-signature-preview img { height: 70px; object-fit: contain; }

/* ─── Alerts / banners ───────────────────────────────────── */
.vf-alert-error {
    padding: 14px 18px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}
.vf-alert-error ul { margin: 6px 0 0 18px; padding: 0; }

.vf-alert-warning {
    padding: 14px 18px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 8px;
    font-size: 14px;
}
.vf-alert-warning a { color: inherit; text-decoration: underline; font-weight: 600; }

/* ─── Buttons row ────────────────────────────────────────── */
.vf-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    margin-top: 30px;
    border-top: 1px solid var(--vf-border);
}

.vf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.vf-btn-primary {
    background: linear-gradient(135deg, var(--vf-primary), var(--vf-primary-dark));
    color: #fff;
}
.vf-btn-primary:hover {
    box-shadow: 0 6px 16px rgba(210, 151, 50, 0.35);
    color: #fff;
    transform: translateY(-1px);
}

.vf-btn-success {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
}
.vf-btn-success:hover {
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
    color: #fff;
    transform: translateY(-1px);
}
.vf-btn-success:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.vf-btn-outline {
    background: #fff;
    color: var(--vf-text);
    border: 2px solid var(--vf-border);
}
.vf-btn-outline:hover { border-color: #9ca3af; }

/* ─── Success page ──────────────────────────────────────── */
.vf-success-card {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 50px 40px;
    text-align: center;
}
@media (max-width: 576px) { .vf-success-card { padding: 32px 22px; } }

.vf-success-icon {
    width: 88px; height: 88px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}
.vf-success-icon svg { width: 44px; height: 44px; }

.vf-success-title { font-size: 28px; font-weight: 700; color: var(--vf-text); margin-bottom: 12px; }
.vf-success-text  { color: var(--vf-muted); margin-bottom: 24px; line-height: 1.6; }

.vf-summary-box {
    background: #fafaf7;
    border: 1px solid var(--vf-border);
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    margin-bottom: 24px;
}
.vf-summary-box h3 {
    font-size: 14px; font-weight: 700;
    color: var(--vf-text);
    margin-bottom: 12px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.vf-summary-box dl { margin: 0; }
.vf-summary-box dl > div {
    display: flex; justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px dashed var(--vf-border);
}
.vf-summary-box dl > div:last-child { border-bottom: 0; }
.vf-summary-box dt { color: var(--vf-muted); }
.vf-summary-box dd { color: var(--vf-text); margin: 0; font-weight: 500; }
.vf-summary-box dd.ref { font-family: monospace; font-weight: 700; }

.vf-status-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.vf-success-actions {
    display: flex; gap: 12px; justify-content: center;
    flex-wrap: wrap;
}

/* Hide Alpine.js cloak flicker */
[x-cloak] { display: none !important; }
