﻿:root {
    --primary: #493276;
    --primary-dark: #D97706;
    --border: #493276;
    --bg: #fff;
    --text: #1F2937;
    --muted: #6B7280;
    --success: #22C55E;
    --danger: #EF4444;
}

* {
    box-sizing: border-box;
    font-family: Inter, Segoe UI, sans-serif;
    color: #333333
}

body {
    margin: 0;
    background: linear-gradient(180deg, #FFF7ED, #FFFFFF);
    color: var(--text);
}

.container {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 16px;
}

.logo {
    display: inline-block;
    /*background: var(--primary);*/
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
}

h1 {
    color: var(--primary);
    margin: 16px 0 6px
}

.sub {
    color: var(--muted);
    margin-bottom: 20px
}
/* ===== STEPPER ===== */
.stepper {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
}

.step-line {
    height: 4px;
    background: #B07DD8;
    position: relative;
    margin-bottom: 18px;
}

    .step-line span {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 10%;
        background: var(--primary);
    }

.steps {
    display: flex;
    justify-content: space-between;
}

.step {
    text-align: center;
    width: 100%;
    font-size: 13px;
    color: #9CA3AF;
}

.circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
}

.step.done .circle,
.step.active .circle {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.step.active {
    color: var(--primary);
    font-weight: 600
}
/* ===== CARD ===== */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
}
/* ===== SECTION HEADER WITH ICON ===== */
.section {
    margin-top: 28px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFF7ED;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
}

.section-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.section-divider {
    border: none;
    border-top: 1px solid #FDE68A;
    margin: 14px 0 20px;
}
/* ===== FORM ===== */
.row {
    display: flex;
    gap: 16px
}

.field {
    flex: 1;
    margin-bottom: 16px
}

label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary)
}

input,
select {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    padding: 0 14px;
    font-size: 14px;
    background: var(--bg);
}

    input[readonly] {
        background: #F3F4F6
    }

.error {
    display: none;
    font-size: 11px;
    color: #DC2626;
    margin-top: 4px;
}
/* ===== OTP ===== */
.otp-row {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.btn {
    height: 44px;
    border: none;
    border-radius: 10px;
    padding: 0 18px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.btn-outline {
    background: #fff;
    border: 1.5px solid var(--border);
    color: var(--primary);
}

.verified {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ECFDF5;
    border: 1px solid #86EFAC;
    color: #166534;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
}
/* ===== FOOTER ===== */
.footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.save-btn {
    background: var(--primary);
    padding: 12px 26px;
    border-radius: 12px;
    border: none;
    color: #fff;
    font-weight: 600;
}
/* ===== ALERTS ===== */
.alert-info {
    background: #FFF7ED;
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: 10px;
    font-size: 13px;
}

.alert-success {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #ECFDF5;
    border: 1px solid #86EFAC;
    color: #166534;
    padding: 14px;
    border-radius: 12px;
    margin-top: 14px;
    font-size: 14px;
}

.alert-error {
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    color: #7F1D1D;
}
/* ===== NOMINEE ===== */
.nominee-box {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
    background: #FFFDF7;
}
/* ===== GUARDIAN ===== */
.guardian-card {
    margin-top: 18px;
    background: #FFF7ED;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
}

.guardian-info {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    color: #92400E;
    font-size: 13px;
}

    .guardian-info b {
        color: var(--primary-dark)
    }

    .guardian-info .subtext {
        font-size: 12px;
        color: #6B7280
    }

.footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px
}

.hidden {
    display: none
}

.remove-nominee {
    cursor: pointer;
    color: #EF4444;
    font-size: 18px;
    font-weight: 700;
}

    .remove-nominee:hover {
        color: #B91C1C;
    }
/* Form-control style button */
.btn-form {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

    .btn-form:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

.error-msg {
    font-size: 12px;
    color: #EF4444;
    margin-top: 4px;
    display: none;
}
.error {
    font-size: 12px;
    color: #EF4444;
    margin-top: 4px;
    display: none;
}

.address-section {
    margin-top: 12px;
}

.address-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #2D1E6B;
}

.same-address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #2D1E6B;
    cursor: pointer;
}

    .same-address input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #5B2DD8; /* modern browsers */
    }
/* Keeps consistency with your input design */
.field input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1.5px solid #5B2DD8;
    outline: none;
}

.field label {
    font-size: 13px;
    font-weight: 500;
    color: #2D1E6B;
    margin-bottom: 4px;
    display: block;
}
/* ===== MODAL ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-box {
    background: #fff;
    width: 420px;
    border-radius: 18px;
    padding: 22px;
    border: 1px solid var(--border);
    position: relative;
}

    .modal-box h4 {
        margin: 0 0 14px;
        color: var(--primary);
    }

.close {
    position: absolute;
    right: 14px;
    top: 14px;
    cursor: pointer;
    font-size: 18px;
}

.qr-box {
    width: 180px;
    height: 180px;
    margin: 10px auto;
    border-radius: 14px;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFDF3;
    overflow: hidden; /* :fire: IMPORTANT */
}
    /* :fire: ENSURE IMAGE FITS */
    .qr-box img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* :fire: KEY */
    }

.how {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
    margin-top: 14px;
}

.upload-box {
    border: 1.5px dashed var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 14px;
}

    .upload-box input {
        border: none;
        background: none;
    }
.otp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.otp-modal {
    background: #fff;
    width: 420px;
    border-radius: 20px;
    padding: 34px 32px 36px;
    text-align: center;
    border: 2px solid var(--border);
    box-shadow: 0 25px 70px rgba(0, 0, 0, .25);
}

.otp-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #fff7ed;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
}

.otp-modal h3 {
    margin: 6px 0 6px;
    font-size: 20px;
    color: var(--primary);
}

.otp-modal p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 22px;
}

.otp-field {
    text-align: left;
    margin-bottom: 22px;
}

    .otp-field label {
        font-size: 13px;
        font-weight: 600;
        color: var(--primary);
    }

    .otp-field input {
        margin-top: 6px;
        width: 100%;
        height: 48px;
        border-radius: 12px;
        border: 1.8px solid var(--border);
        text-align: center;
        font-size: 18px;
        letter-spacing: 4px;
        background: #fffdf7;
    }

.otp-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(180deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(245, 158, 11, .45);
}

    .otp-btn:hover {
        filter: brightness(1.05);
    }

.otp-error {
    display: none;
    font-size: 12px;
    color: #ef4444;
    margin-top: 6px;
}
/*.error-msgid {
    display: none;
    font-size: 12px;
    color: #EF4444;
    margin-top: 4px;
    display: none;
}*/
.popup-overlay {
    position: fixed;
    inset: 0; /* top:0 left:0 right:0 bottom:0 */
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
    z-index: 9999;
}

.popup-box {
    background: #fff;
    padding: 24px 30px;
    border-radius: 8px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

    .popup-box button {
        margin-top: 18px;
        padding: 8px 22px;
        border: none;
        border-radius: 4px;
        background: #7c3aed;
        color: #fff;
        cursor: pointer;
    }
.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: 0.25rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

