/* BASE STYLES - Ultra-Premium Vastu Planning Modal */
:root { 
    --p-navy: #0d2b6e; 
    --p-border: #dde4f0; 
    --p-bg: #f8faff;
    --p-white: #ffffff;
}

.p-modal { 
    display: none; 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0,0,0,0.85); 
    z-index: 10001; 
    font-family: 'Segoe UI', Roboto, Arial, sans-serif; 
    align-items: center; justify-content: center; 
}

.p-modal-content { 
    background: #fff; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    position: relative; 
}

.p-close { 
    position: absolute; 
    top: 10px; right: 15px; 
    border: none; background: none; 
    font-size: 24px; color: #ccc; 
    cursor: pointer; z-index: 20; 
}

/* HEADER */
.hdr { 
    background: #fff; 
    border-bottom: 1px solid var(--p-border); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    width: 100%;
}
.htitle h2 { font-weight: 800; color: var(--p-navy); margin: 0; letter-spacing: 0.5px; }
.hsub { color: #7a8aaa; font-size: 11px; margin-top: 3px; }

/* STEPPER */
.stepper { 
    background: #fff; 
    border-bottom: 1px solid var(--p-border); 
    display: flex; 
    overflow-x: auto; 
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 5px;
}
.stepper::-webkit-scrollbar { display: none; }
.si { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 45px; }
.sc { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #dde4f0; color: #9aaabb; font-size: 11px; font-weight: 800; transition: 0.3s; }
.si.active .sc { background: var(--p-navy); color: #fff; border-color: var(--p-navy); }
.sl { font-size: 8px; font-weight: 600; text-align: center; color: #9aaabb; margin-top: 4px; }
.si.active .sl { color: var(--p-navy); font-weight: 800; }

/* BODY */
.m-form-master { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--p-bg); }
.fc-scrollable { flex: 1; overflow-y: auto; padding: 15px; }
.sp { display: none; }
.sp.active { display: block; animation: fIn 0.3s; }
@keyframes fIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.card { background: #fff; border: 1.5px solid #dde4f0; border-radius: 12px; padding: 20px; margin-bottom: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.sh { display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--p-navy); margin-bottom: 15px; padding-bottom: 8px; }
.snum { width: 22px; height: 22px; background: var(--p-navy); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12px; }
.stitle { font-size: 14px; font-weight: 900; color: var(--p-navy); text-transform: uppercase; }

/* FORM ELEMENTS */
.fg { margin-bottom: 15px; }
.fl { display: block; font-size: 11px; font-weight: 800; color: #334; margin-bottom: 6px; }
.fi { width: 100%; padding: 12px; border: 1.5px solid #dde4f0; border-radius: 8px; font-size: 14px; background: #fff; outline: none; transition: 0.2s; }
.fi:focus { border-color: var(--p-navy); box-shadow: 0 0 0 3px rgba(13,43,110,0.1); }

/* PLOT AREA UI */
.pr { display: flex; align-items: center; width: 100%; }
.pr input { border-right: none !important; border-radius: 8px 0 0 8px !important; flex: 1; }
.ut { background: #f0f4f8; color: #7a8aaa; border: 1.5px solid #dde4f0; border-left: none; border-radius: 0 8px 8px 0; font-weight: 700; font-size: 13px; padding: 12px 15px; min-width: 45px; display: flex; align-items: center; justify-content: center; }

.aab { border: 1.5px solid var(--p-navy); border-radius: 12px; padding: 20px; background: #fff; margin: 15px 0; }
.aal { font-size: 11px; font-weight: 800; color: var(--p-navy); letter-spacing: 0.5px; margin-bottom: 5px; }
.aav { font-size: 38px; font-weight: 900; color: var(--p-navy); }
.aau { font-size: 15px; font-weight: 800; color: var(--p-navy); float: right; margin-top: 15px; }

.rr { display: flex; gap: 20px; margin-top: 8px; }
.ri { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--p-navy); cursor: pointer; }
.ri input { accent-color: var(--p-navy); width: 18px; height: 18px; }

/* COMPASS */
.comp-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.compass-svg-container { flex-shrink: 0; display: flex; justify-content: center; }
.dir-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; min-width: 180px; }
.db { padding: 10px; border: 1.5px solid #dde4f0; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; text-align: center; background: #fdfdfd; transition: 0.2s; }
.db.active { background: var(--p-navy); color: #fff; border-color: var(--p-navy); }
.upload-box { border: 2px dashed #dde4f0; padding: 15px; text-align: center; border-radius: 10px; font-size: 11px; color: #9aaabb; cursor: pointer; margin-top: 15px; width: 100%; }

/* PREFERENCES */
.ol { display: flex; flex-direction: column; gap: 12px; margin: 10px 0; }
.oi { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--p-navy); cursor: pointer; padding: 10px; border: 1.5px solid #f0f3f8; border-radius: 8px; transition: 0.2s; }
.oi:hover { background: #f8faff; }
.oi input { accent-color: var(--p-navy); width: 18px; height: 18px; }

/* PARKING */
.gg { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; width: 100%; }
.gc { border: 1.5px solid #dde4f0; border-radius: 12px; padding: 15px 10px; text-align: center; cursor: pointer; background: #fff; transition: 0.3s; position: relative; }
.gc.sel { border-color: var(--p-navy); background: #eef3ff; box-shadow: 0 4px 15px rgba(13,43,110,0.1); }
.gc i { font-size: 28px; color: var(--p-navy); display: block; margin-bottom: 8px; }
.gc-title { font-size: 12px; font-weight: 800; color: var(--p-navy); }
.gc-sub { font-size: 10px; color: #7a8aaa; margin-top: 4px; }

/* SPACES */
.cg-single { display: flex; flex-direction: column; gap: 10px; }
.ci { border: 1.5px solid #dde4f0; border-radius: 10px; padding: 12px 15px; display: flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; font-weight: 600; color: var(--p-navy); background: #fff; transition: 0.2s; }
.ci.ck { border-color: var(--p-navy); background: #eef3ff; }
.ci input { accent-color: var(--p-navy); width: 18px; height: 18px; }
.ci-icon { margin-left: auto; }

/* LUXURY */
.lg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.lc { border: 1.5px solid #dde4f0; border-radius: 12px; padding: 15px 10px; text-align: center; cursor: pointer; background: #fff; transition: 0.2s; min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.lc.active { border-color: var(--p-navy); background: #eef3ff; }
.lc i { font-size: 24px; color: var(--p-navy); }
.ci-icon i { font-size: 20px; color: var(--p-navy); }
.lc-name { font-size: 9px; font-weight: 800; color: var(--p-navy); line-height: 1.2; text-transform: uppercase; }

/* REVIEW */
.rv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 25px; }
.rv-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #f0f3f8; font-size: 12px; }
.rv-key { color: #7a8aaa; font-weight: 500; }
.rv-val { font-weight: 700; color: var(--p-navy); }

/* SUCCESS POPUP */
.success-card { 
    background: #fff; width: 90%; max-width: 400px; padding: 40px 30px; 
    border-radius: 24px; text-align: center; box-shadow: 0 30px 70px rgba(0,0,0,0.3);
}
.s-title { color: var(--p-navy); font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.s-desc { color: #556; font-size: 14px; line-height: 1.6; margin-bottom: 30px; }
.btn-success-close { 
    background: var(--p-navy); color: #fff; border: none; padding: 15px 40px; 
    border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.3s;
}
.btn-success-close:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(13,43,110,0.3); }

/* FOOTER NAV */
.nav-fit { background: #fff; border-top: 1px solid var(--p-border); display: flex; align-items: center; padding: 15px 20px; }
.btn-next, .btn-submit { background: var(--p-navy); color: #fff; border: none; font-weight: 800; padding: 12px 35px; border-radius: 10px; font-size: 14px; cursor: pointer; transition: 0.2s; }
.btn-back { background: #fff; border: 2px solid var(--p-navy); color: var(--p-navy); font-weight: 800; padding: 11px 30px; border-radius: 10px; font-size: 14px; cursor: pointer; transition: 0.2s; }

.fbar-fit { background: var(--p-navy); color: #fff; padding: 12px; display: flex; justify-content: space-around; align-items: center; font-size: 10px; font-weight: 800; }
