/* ============================================================
   Registration popup (Bootstrap modal) — Pinddaan Gaya
   ============================================================ */

/* Topbar action buttons shown inside the mobile hamburger menu */
.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    width: 100%;
    margin-top: .9rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line, #ead7c4);
}

.mobile-menu-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Site navbar is z-index 1100 and the mega-menu 1200, so lift the modal
   and its backdrop above them or the header covers the popup. */
.registration-modal {
    z-index: 1300;
}

.modal-backdrop {
    z-index: 1290;
}

.registration-modal .modal-dialog {
    max-width: 920px;
}

.registration-modal .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    max-height: 92vh;
    box-shadow: 0 30px 80px rgba(40, 18, 8, .35);
}

.registration-modal .modal-body {
    padding: 0;
}

.reg-modal-body {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    max-height: 92vh;
    overflow-y: auto;
}

/* ---------- Left: benefits / guidance ---------- */
.reg-aside {
    flex: 1 1 42%;
    position: relative;
    color: #fff5ea;
    padding: 1.9rem 1.8rem;
    background: linear-gradient(160deg, #7a2420 0%, #b9440c 55%, #d95a13 100%);
    overflow: hidden;
}

.reg-aside::after {
    content: "\0950";
    /* ॐ */
    position: absolute;
    right: -1rem;
    bottom: -2.5rem;
    font-size: 12rem;
    line-height: 1;
    color: rgba(255, 255, 255, .08);
    pointer-events: none;
}

.reg-aside-eyebrow {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #ffd9b0;
    margin-bottom: .5rem;
}

.reg-aside h3 {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: .5rem;
    color: #fff;
}

.reg-aside-lead {
    font-size: .9rem;
    line-height: 1.5;
    color: #ffe9d6;
    margin-bottom: 1.1rem;
}

.reg-benefits {
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0;
    position: relative;
    z-index: 1;
}

.reg-benefits li {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin-bottom: .7rem;
    font-size: .9rem;
    line-height: 1.35;
}

.reg-benefits li i {
    flex: 0 0 auto;
    margin-top: .1rem;
    width: 1.4rem;
    height: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: .78rem;
}

.reg-benefits li strong {
    display: block;
    font-weight: 600;
    color: #fff;
}

.reg-benefits li span {
    color: #ffe4cd;
    font-size: .82rem;
}

.reg-aside-note {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .8rem;
    color: #ffe9d6;
    padding: .7rem .9rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, .16);
    border: 1px solid rgba(255, 255, 255, .15);
}

.reg-aside-note i {
    color: #ffd9b0;
    font-size: 1rem;
}

/* ---------- Right: form ---------- */
.reg-form-wrap {
    flex: 1 1 48%;
    padding: 1.7rem 1.8rem;
    background: #fffdfa;
}

.registration-modal form .mb-3 {
    margin-bottom: .8rem;
}

.reg-form-wrap .modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--maroon, #681e1b);
    margin-bottom: .25rem;
}

.reg-form-sub {
    font-size: .85rem;
    color: var(--muted, #74645d);
    margin-bottom: 1.3rem;
}

.registration-modal .form-label {
    font-size: .82rem;
    font-weight: 600;
    color: #4a352c;
    margin-bottom: .3rem;
}

.registration-modal .form-label .req {
    color: #d0341f;
    margin-left: .1rem;
}

.registration-modal .form-label .opt {
    font-weight: 500;
    color: #9a8b82;
    font-size: .72rem;
}

.registration-modal .form-control {
    border: 1px solid var(--line, #ead7c4);
    border-radius: 9px;
    padding: .6rem .8rem;
    font-size: .9rem;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.registration-modal .form-control:focus {
    border-color: #ea701d;
    box-shadow: 0 0 0 .2rem rgba(217, 90, 19, .15);
}

.registration-modal .input-icon {
    position: relative;
}

.registration-modal .input-icon i {
    position: absolute;
    left: .8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #c08a5e;
    font-size: .9rem;
    pointer-events: none;
}

.registration-modal .input-icon .form-control {
    padding-left: 2.3rem;
}

/* File upload */
.reg-upload {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .85rem 1rem;
    border: 1.5px dashed #d9b89a;
    border-radius: 10px;
    background: #fff8f1;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.reg-upload:hover {
    border-color: #ea701d;
    background: #fff2e6;
}

.reg-upload i {
    font-size: 1.4rem;
    color: #d95a13;
}

.reg-upload .reg-upload-text {
    font-size: .82rem;
    color: #6b584d;
    line-height: 1.3;
}

.reg-upload .reg-upload-text strong {
    display: block;
    color: #4a352c;
    font-weight: 600;
}

.reg-upload input[type="file"] {
    display: none;
}

.reg-upload.has-file {
    border-style: solid;
    border-color: #27643c;
    background: #f2f9f4;
}

.reg-upload.has-file i {
    color: #27643c;
}

.reg-submit {
    width: 100%;
    margin-top: .4rem;
    padding: .8rem 1rem;
    font-size: .95rem;
    font-weight: 700;
    border-radius: 10px;
}

.reg-privacy {
    text-align: center;
    font-size: .74rem;
    color: #9a8b82;
    margin: .9rem 0 0;
}

/* Success state */
.reg-success {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
}

.reg-success.show {
    display: block;
}

.reg-success .reg-success-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf6ee;
    color: #27643c;
    font-size: 2.2rem;
}

.reg-success h4 {
    color: var(--maroon, #681e1b);
    font-weight: 700;
    margin-bottom: .4rem;
}

.reg-success p {
    color: var(--muted, #74645d);
    font-size: .9rem;
    margin-bottom: 1.3rem;
}

/* Close button positioning */
.registration-modal .btn-close {
    position: absolute;
    top: .9rem;
    right: 1rem;
    z-index: 5;
    background-color: rgba(255, 255, 255, .85);
    border-radius: 50%;
    padding: .55rem;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    .reg-aside {
        flex: 1 1 100%;
        padding: 1.8rem 1.5rem;
    }

    .reg-aside::after {
        font-size: 8rem;
        bottom: -1.5rem;
    }

    .reg-form-wrap {
        flex: 1 1 100%;
        padding: 1.8rem 1.5rem;
    }

    .reg-modal-body {
        min-height: 0;
    }
}
