/* ============================================================
   MEMBER REGISTRATION PAGE — member-register.css
   Matches kanhacowrescue.in design system
   ============================================================ */

/* HERO */
.member-hero {
    height: 55vh;
    min-height: 360px;
    background: url('../images/hero.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 114px 20px 0; /* sticky header clearance */
}

.member-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.48) 0%, rgba(120,40,0,0.82) 100%);
    z-index: 1;
}

.member-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 720px;
}

.member-hero-badge {
    display: inline-block;
    background: rgba(255,122,0,0.92);
    color: white;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 7px 22px;
    border-radius: 30px;
    margin-bottom: 20px;
    text-transform: uppercase;
    animation: badge-pulse 2.2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,122,0,0.5); }
    50%       { box-shadow: 0 0 0 10px rgba(255,122,0,0); }
}

.member-hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    color: white;
}

.member-hero-content p {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
}

/* BENEFITS STRIP */
.member-benefits-strip {
    background: linear-gradient(135deg, #ff7a00, #ff9800);
    padding: 20px;
}

.benefits-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.benefit-icon { font-size: 22px; }

/* REGISTRATION SECTION */
.member-register-section {
    padding: 60px 20px 80px;
    background: #faf9f7;
}

.member-register-section .container,
.why-join-section .container {
    max-width: 860px;
    margin: 0 auto;
    display: block;  /* override header.css flex */
    padding: 0;
    align-items: unset;
    justify-content: unset;
}

.section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.section-heading h2 {
    font-size: 30px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.section-heading p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* FORM CARD */
.register-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    border: 1px solid #f0ece8;
}

/* STEP INDICATOR */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e8e6e0;
    color: #aaa;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: 2px solid #e0ddd8;
    position: relative;
    z-index: 2;
}

.step.active .step-circle {
    background: linear-gradient(135deg, #ff7a00, #ff9800);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(255,122,0,0.35);
}

.step.done .step-circle {
    background: #22c55e;
    color: white;
    border-color: transparent;
}

.step-label {
    font-size: 11px;
    font-weight: 600;
    color: #aaa;
    text-align: center;
    white-space: nowrap;
}

.step.active .step-label { color: #ff7a00; }
.step.done  .step-label  { color: #22c55e; }

.step-line {
    flex: 1;
    height: 2px;
    background: #e0ddd8;
    min-width: 50px;
    max-width: 100px;
    margin-bottom: 22px;
    transition: all 0.3s;
}

.step-line.done { background: #22c55e; }

/* FORM SECTIONS */
.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0ece8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title .section-icon {
    font-size: 22px;
}

/* FORM GRID */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    letter-spacing: 0.2px;
}

.form-group label .req {
    color: #ef4444;
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 11px 14px;
    border: 1.5px solid #e0ddd8;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a2e;
    background: #fafaf8;
    transition: all 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ff7a00;
    background: white;
    box-shadow: 0 0 0 3px rgba(255,122,0,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bbb;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    font-size: 12px;
    color: #999;
    margin-top: -3px;
}

/* MEMBERSHIP TYPES */
.membership-types {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.membership-option {
    position: relative;
}

.membership-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.membership-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 12px;
    border: 2px solid #e0ddd8;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s;
    background: #fafaf8;
    text-align: center;
    gap: 8px;
}

.membership-option input:checked + .membership-card {
    border-color: #ff7a00;
    background: linear-gradient(135deg, #fff8f3, #fff3ea);
    box-shadow: 0 4px 16px rgba(255,122,0,0.18);
}

.membership-card:hover {
    border-color: #ff9800;
    transform: translateY(-2px);
}

.mem-icon { font-size: 28px; }
.mem-name { font-size: 14px; font-weight: 700; color: #1a1a2e; }
.mem-fee  { font-size: 22px; font-weight: 800; color: #ff7a00; }
.mem-period { font-size: 12px; color: #888; }
.mem-perks { font-size: 12px; color: #555; line-height: 1.5; }

/* PAYMENT SECTION */
.payment-methods-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.payment-option {
    position: relative;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e0ddd8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
    background: #fafaf8;
}

.payment-option input:checked + .payment-card {
    border-color: #ff7a00;
    background: #fff8f3;
    box-shadow: 0 4px 12px rgba(255,122,0,0.14);
}

.payment-card:hover { border-color: #ff9800; }
.pay-icon  { font-size: 24px; }
.pay-label { font-size: 14px; font-weight: 700; color: #1a1a2e; }

.payment-details-box {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #fff8f3, #fff3ea);
    border: 1.5px solid rgba(255,122,0,0.25);
    border-radius: 14px;
    padding: 22px;
    display: none;
}

.payment-details-box.visible { display: block; animation: fadeIn 0.3s ease; }

.payment-details-box h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ff7a00;
    margin-bottom: 12px;
}

.bank-detail-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    align-items: baseline;
}

.bank-detail-label {
    font-weight: 700;
    color: #555;
    min-width: 130px;
    flex-shrink: 0;
}

.bank-detail-value {
    color: #1a1a2e;
    font-weight: 600;
}

.upi-qr-area {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.upi-qr-img {
    width: 140px;
    height: 140px;
    border-radius: 10px;
    border: 3px solid #ff7a00;
    object-fit: cover;
}

.upi-info { flex: 1; min-width: 160px; }
.upi-info p { font-size: 14px; color: #555; margin-bottom: 8px; }
.upi-id-box {
    background: white;
    border: 1.5px solid rgba(255,122,0,0.4);
    border-radius: 8px;
    padding: 8px 14px;
    font-family: monospace;
    font-size: 15px;
    font-weight: 700;
    color: #ff7a00;
    letter-spacing: 0.5px;
}

.cash-note {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.cash-address {
    background: white;
    border-radius: 10px;
    padding: 14px;
    margin-top: 12px;
    border: 1px solid rgba(255,122,0,0.2);
}

.cash-address p { font-size: 14px; color: #333; margin-bottom: 4px; }

/* TRANSACTION REF */
.txn-ref-group {
    grid-column: 1 / -1;
    display: none;
}

.txn-ref-group.visible { display: block; }

/* FORM NAV BUTTONS */
.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 2px solid #f0ece8;
    gap: 14px;
}

.btn-prev {
    padding: 12px 26px;
    border-radius: 30px;
    border: 2px solid #e0ddd8;
    background: white;
    color: #666;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-prev:hover {
    border-color: #ff7a00;
    color: #ff7a00;
}

.btn-next, .btn-submit {
    padding: 13px 32px;
    border-radius: 30px;
    background: linear-gradient(135deg, #ff7a00, #ff9800);
    color: white;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(255,122,0,0.3);
}

.btn-next:hover, .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,122,0,0.45);
}

.btn-submit { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 4px 16px rgba(34,197,94,0.3); }
.btn-submit:hover { box-shadow: 0 8px 24px rgba(34,197,94,0.45); }

/* ALERTS */
.alert-box {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-error {
    background: #fff1f0;
    border: 1.5px solid rgba(239,68,68,0.35);
    color: #991b1b;
}

.alert-success {
    background: #f0fdf4;
    border: 1.5px solid rgba(34,197,94,0.35);
    color: #166534;
}

.alert-icon { font-size: 20px; flex-shrink: 0; }

/* SUCCESS STATE */
.success-card {
    text-align: center;
    padding: 50px 30px;
}

.success-icon-wrap {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    margin: 0 auto 26px;
    box-shadow: 0 10px 30px rgba(34,197,94,0.35);
    animation: pop-in 0.5s cubic-bezier(.2,1.5,.5,1) both;
}

@keyframes pop-in {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
}

.success-card h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.success-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 10px;
}

.success-ref {
    display: inline-block;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid rgba(34,197,94,0.35);
    border-radius: 12px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    color: #166534;
    margin: 18px 0 28px;
    letter-spacing: 0.5px;
}

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

.btn-home {
    padding: 12px 26px;
    border-radius: 30px;
    background: linear-gradient(135deg, #ff7a00, #ff9800);
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.25s;
}

.btn-home:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,122,0,0.4); }

.btn-donate-alt {
    padding: 12px 26px;
    border-radius: 30px;
    border: 2px solid #ff7a00;
    color: #ff7a00;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.25s;
}

.btn-donate-alt:hover { background: #ff7a00; color: white; transform: translateY(-2px); }

/* WHY JOIN SECTION */
.why-join-section {
    padding: 60px 20px;
    background: white;
}

.why-join-section h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.why-join-section .sub {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 16px;
}

.perks-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.perk-card {
    background: #faf9f7;
    border-radius: 16px;
    padding: 26px 20px;
    text-align: center;
    border: 1.5px solid #f0ece8;
    transition: all 0.25s;
}

.perk-card:hover {
    border-color: rgba(255,122,0,0.35);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.07);
}

.perk-icon { font-size: 36px; margin-bottom: 12px; }
.perk-title { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.perk-desc  { font-size: 13px; color: #777; line-height: 1.6; }

/* VALIDATION */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #ef4444;
    background: #fff8f8;
}

.error-msg {
    font-size: 12px;
    color: #ef4444;
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 680px) {
    .member-hero-content h1 { font-size: 28px; }
    .register-card { padding: 24px 18px; }
    .form-grid { grid-template-columns: 1fr; }
    .membership-types { grid-template-columns: 1fr; }
    .payment-methods-grid { grid-template-columns: 1fr; }
    .perks-grid { grid-template-columns: 1fr 1fr; }
    .upi-qr-area { flex-direction: column; align-items: center; }
    .benefits-inner { gap: 20px; justify-content: flex-start; }
    .step-line { min-width: 24px; }
}

@media (max-width: 440px) {
    .perks-grid { grid-template-columns: 1fr; }
}
