/* ==========================================================================
   PRIDENS — REGISTRATION PAGE
   ========================================================================== */

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

:root {
    --primary:        #2db7cc;
    --primary-dark:   #1a9ab0;
    --primary-light:  #e6f8fb;
    --text-dark:      #0f172a;
    --text-mid:       #334155;
    --text-muted:     #64748b;
    --bg-page:        #f8fafc;
    --bg-white:       #ffffff;
    --border:         #e2e8f0;
    --danger:         #ef4444;
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg:      0 20px 50px rgba(0,0,0,0.08);
}

body {
    background: var(--bg-page) !important;
    font-family: 'Poppins', sans-serif !important;
    overflow-x: hidden;
}

.reg-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 24px;
}

.reg-header {
    text-align: center;
    margin-bottom: 40px;
}

.reg-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.reg-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ── Google Auth ──────────────────────────────────────────────────────── */
.google-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 32px;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.divider:not(:empty)::before { margin-right: .5em; }
.divider:not(:empty)::after { margin-left: .5em; }

/* ── Form Card ───────────────────────────────────────────────────────── */
.reg-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.reg-step {
    margin-bottom: 40px;
}

.reg-step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-page);
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-num {
    background: var(--primary-light);
    color: var(--primary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* ── Form Controls ───────────────────────────────────────────────────── */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grid.col-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-grid.col-1 { grid-template-columns: 1fr; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-mid);
}

.form-label span.req { color: var(--danger); }

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    background: var(--bg-white);
}

.form-control.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pm-card {
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.pm-card:hover { border-color: var(--primary-light); background: var(--bg-page); }

.pm-card input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    margin-top: 2px;
}

.pm-details h4 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

.pm-details p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.pm-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

/* Beneficiaries */
.ben-row {
    background: var(--bg-page);
    border: 1px dashed var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    position: relative;
}

.btn-remove-ben {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--danger);
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.btn-add-ben {
    background: var(--bg-page);
    border: 1px dashed var(--primary);
    color: var(--primary);
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-ben:hover {
    background: var(--primary-light);
}

/* Submit */
.form-footer {
    border-top: 1px solid var(--border);
    margin-top: 40px;
    padding-top: 32px;
    display: flex;
    justify-content: flex-end;
}

.btn-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 20px rgba(45,183,204,0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-submit:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .reg-card { padding: 24px; }
    .form-grid { grid-template-columns: 1fr !important; }
    .payment-methods { grid-template-columns: 1fr; }
}
