/* ============= Q9 POPUP — FULL CSS ============= */

/* OVERLAY */
#q9-overlay {
   display: none;
   position: fixed;
   inset: 0;
   background: rgba(0, 0, 0, 0.55);
   z-index: 99999;
   align-items: center;
   justify-content: center;
   padding: 16px;
   box-sizing: border-box;
}

#q9-overlay.visible {
   display: flex;
}

/* POPUP BOX */
.q9-popup {
   background: #fff;
   border-radius: 14px;
   overflow: hidden;
   width: 100%;
   max-width: 1070px;
   position: relative;
   box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}

/* CLOSE BUTTON */
.q9-cls {
   position: absolute;
   top: 14px;
   right: 16px;
   width: 32px;
   height: 32px;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.25);
   border: none;
   cursor: pointer;
   font-size: 18px;
   color: #fff;
   z-index: 30;
   display: flex;
   align-items: center;
   justify-content: center;
}

/* ── TOP ROW ── */
.q9-top-row {
   background: linear-gradient(135deg, #005eaa 0%, #003d7a 100%);
   padding: 28px 40px 26px;
   text-align: center;
   position: relative;
}

.q9-top-row::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0;
   height: 3px;
   /*background: linear-gradient(90deg, #ff0004, #ff6666, #ff0004);*/
}

.q9-eyebrow {
   font-size: 11px;
   font-weight: 700;
   color: rgba(255, 255, 255, 0.7);
   letter-spacing: .9px;
   text-transform: uppercase;
   margin-bottom: 7px;
}

.q9-top-h {
   font-size: 30px;
   font-weight: 800;
   color: #fff;
   line-height: 1.35;
   margin-bottom: 8px;
}

.q9-top-h span {
   color: #FFD700;
}

.red-txt {
   color: #ff6666 !important;
}

.q9-top-para {
   font-size: 16px;
   color: rgba(255, 255, 255, 0.82);
   line-height: 1.65;
   max-width: 640px;
   margin: 0 auto;
}

/* ── BODY ROW: 2 COLUMNS ── */
.q9-body-row {
   display: grid;
   grid-template-columns: 1fr 1fr;
   min-height: 420px;
}

/* ── FORM COLUMN ── */
.q9-form-col {
   padding: 30px 34px 26px;
   border-right: 1px solid #eee;
   display: flex;
   flex-direction: column;
}

/* PROGRESS DOTS */
.q9-dots {
   display: flex;
   gap: 6px;
   margin-bottom: 10px;
}

.step-dot {
   width: 30px;
   height: 4px;
   border-radius: 4px;
   background: #e8e8e8;
   transition: background .25s;
}

.step-dot.active {
   background: #ff0004;
}

.step-dot.done {
   background: #005eaa;
}

/* STEP PANELS */
.step-panel {
   display: none;
}

.step-panel.active {
   display: block;
}

.q9-slbl {
   font-size: 10.5px;
   font-weight: 700;
   color: #ff0004;
   text-transform: uppercase;
   letter-spacing: .6px;
   margin-bottom: 5px;
}

.q9-sq {
   font-size: 16px;
   font-weight: 800;
   color: #111;
   margin-bottom: 14px;
   line-height: 1.3;
}

/* ── PLAN CARDS (Radio Style) ── */
.q9-plan-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 10px;
   margin-bottom: 4px;
}

.q9-pc {
   border: 2px solid #e0e0e0;
   border-radius: 10px;
   padding: 13px 14px;
   cursor: pointer;
   transition: border-color .2s, background .2s, box-shadow .2s;
   display: flex;
   align-items: flex-start;
   gap: 10px;
   position: relative;
}

.q9-pc:hover {
   border-color: #005eaa;
   background: #f0f6ff;
}

.q9-pc.sel {
   border-color: #005eaa;
   background: #e8f2fd;
   box-shadow: 0 0 0 3px rgba(0, 94, 170, 0.12);
}

/* Hidden native radio */
.q9-pc input[type="radio"] {
   position: absolute;
   opacity: 0;
   width: 0;
   height: 0;
   pointer-events: none;
}

/* Custom radio circle */
.q9-pc-radio {
   flex-shrink: 0;
   padding-top: 2px;
}

.q9-radio-outer {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 18px;
   height: 18px;
   border-radius: 50%;
   border: 2px solid #c0c0c0;
   background: #fff;
   transition: border-color .2s;
}

.q9-radio-inner {
   width: 8px;
   height: 8px;
   border-radius: 50%;
   background: #005eaa;
   transform: scale(0);
   transition: transform .2s ease;
}

.q9-pc.sel .q9-radio-outer {
   border-color: #005eaa;
}

.q9-pc.sel .q9-radio-inner {
   transform: scale(1);
}

/* Card content */
.q9-pc-content {
   flex: 1;
}

.q9-pc-amt {
   font-size: 17px;
   font-weight: 800;
   color: #005eaa;
}

.q9-pc-name {
   font-size: 12px;
   color: #222;
   font-weight: 700;
   margin-top: 3px;
}

.q9-pc-sub {
   font-size: 11px;
   color: #888;
   margin-top: 2px;
}

/* ── INPUTS ── */
.q9-input {
   width: 100%;
   padding: 11px 14px;
   box-sizing: border-box;
   border: 1.5px solid #d5d5d5;
   border-radius: 8px;
   font-size: 14px;
   color: #111;
   outline: none;
   background: #fff;
   transition: border-color .15s;
}

.q9-input:focus {
   border-color: #005eaa;
}

.q9-ph-row {
   display: flex;
   gap: 8px;
   align-items: stretch;
}

.q9-pfx {
   background: #eef4fb;
   border: 1.5px solid #d5d5d5;
   border-radius: 8px;
   padding: 11px 13px;
   font-size: 14px;
   font-weight: 700;
   color: #005eaa;
   display: flex;
   align-items: center;
}

/* ── ERRORS ── */
.field-error {
   display: none;
   font-size: 11.5px;
   color: #e00;
   margin-top: 4px;
}

.field-error.visible {
   display: block;
}

/* ── OTP BOXES ── */
.q9-otp-row {
   display: flex;
   gap: 8px;
   margin-top: 4px;
}

.q9-otp-box {
   width: 46px;
   height: 52px;
   border: 1.5px solid #d5d5d5;
   border-radius: 8px;
   text-align: center;
   font-size: 20px;
   font-weight: 700;
   color: #111;
   outline: none;
}

.q9-otp-box:focus {
   border-color: #005eaa;
}

.q9-resend {
   font-size: 12px;
   color: #005eaa;
   cursor: pointer;
   margin-top: 8px;
   display: inline-block;
   font-weight: 600;
}

.q9-verified-badge {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   font-size: 12px;
   font-weight: 700;
   color: #15803d;
   background: #dcfce7;
   padding: 4px 11px;
   border-radius: 20px;
   margin-bottom: 11px;
}

/* ── BUTTONS ── */
.q9-btn-red {
   width: 100%;
   margin-top: 14px;
   padding: 13px;
   background-color: #004687 !important;
   color: #fff;
   border: none;
   border-radius: 8px;
   font-size: 15px;
   font-weight: 800;
   cursor: pointer;
   transition: background .15s;
}

.q9-btn-red:hover {
   background: #cc0003;
}

.q9-btn-blue {
   width: 100%;
   margin-top: 14px;
   padding: 13px;
   background: #fff;
   color: #005eaa;
   border: 2px solid #005eaa;
   border-radius: 8px;
   font-size: 15px;
   font-weight: 800;
   cursor: pointer;
   transition: background .15s, color .15s;
}

.q9-btn-blue:hover {
   background: #005eaa;
   color: #fff;
}

/* BACK + CONTINUE ROW */
.q9-btn-row {
   display: flex;
   gap: 10px;
   margin-top: 14px;
}

.q9-btn-row .q9-btn-red,
.q9-btn-row .q9-btn-blue {
   margin-top: 0;
   flex: 1;
}

.q9-btn-back {
   flex: 0 0 90px;
   padding: 13px;
   background: #fff;
   color: #555;
   border: 1.5px solid #d5d5d5;
   border-radius: 8px;
   font-size: 14px;
   font-weight: 700;
   cursor: pointer;
   transition: border-color .15s, color .15s;
}

.q9-btn-back:hover {
   border-color: #005eaa;
   color: #005eaa;
}

/* ── SUCCESS ── */
.q9-success-wrap {
   text-align: center;
   padding: 30px 0 10px;
}

.q9-suc-ico {
   width: 64px;
   height: 64px;
   border-radius: 50%;
   background: #dcfce7;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 0 auto 14px;
}

.q9-suc-h {
   font-size: 20px;
   font-weight: 800;
   color: #111;
   margin-bottom: 8px;
}

.q9-suc-p {
   font-size: 13px;
   color: #555;
   line-height: 1.65;
}

.q9-suc-tag {
   display: inline-block;
   background: #eef4fb;
   color: #005eaa;
   border-radius: 20px;
   padding: 5px 16px;
   font-size: 12px;
   font-weight: 700;
   margin-top: 10px;
}

/* SECURE NOTE */
.q9-secure-note {
   margin-top: auto;
   padding-top: 16px;
   text-align: center;
   font-size: 11px;
   color: #999;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 4px;
}

/* ── TRUST COLUMN ── */
.q9-trust-col {
   padding: 30px 28px 26px;
   background: #f8fafd;
}

.q9-trust-head {
   font-size: 13px;
   font-weight: 800;
   color: #005eaa;
   text-transform: uppercase;
   letter-spacing: .5px;
   margin-bottom: 4px;
}

.q9-trust-sub {
   font-size: 12.5px;
   color: #666;
   margin-bottom: 20px;
   line-height: 1.5;
}

.q9-tp {
   display: flex;
   gap: 14px;
   align-items: flex-start;
   margin-bottom: 16px;
   padding: 15px;
   background: #fff;
   border-radius: 10px;
   border: 1px solid #e8edf5;
}

.q9-tp-ico {
   width: 44px;
   height: 44px;
   border-radius: 10px;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
}

.q9-tp-ico.blue {
   background: #eef4fb;
}

.q9-tp-ico.red {
   background: #fff0f0;
}

.q9-tp-title {
   font-size: 14px;
   font-weight: 800;
   color: #111;
   margin-bottom: 4px;
}

.q9-tp-desc {
   font-size: 12px;
   color: #555;
   line-height: 1.6;
}

.q9-tp-tag {
   display: inline-block;
   font-size: 10px;
   font-weight: 700;
   padding: 2px 8px;
   border-radius: 10px;
   margin-top: 5px;
}

.q9-tp-tag.blue {
   background: #eef4fb;
   color: #005eaa;
}

.q9-tp-tag.red {
   background: #fff0f0;
   color: #005eaa;
}

.q9-stats-row {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 8px;
   margin-top: 4px;
}

.q9-stat {
   background: #fff;
   border: 1px solid #e8edf5;
   border-radius: 8px;
   padding: 10px;
   text-align: center;
}

.q9-stat-num {
   font-size: 19px;
   font-weight: 800;
   color: #005eaa;
}

.q9-stat-lbl {
   font-size: 10.5px;
   color: #666;
   margin-top: 2px;
}

.q9-rera-badge {
   background: #005eaa;
   color: #fff;
   border-radius: 8px;
   padding: 10px 14px;
   display: flex;
   align-items: center;
   gap: 10px;
   margin-top: 10px;
}

.q9-rera-txt {
   font-size: 12px;
   font-weight: 700;
   color: #fff;
}

.q9-rera-sub {
   font-size: 10.5px;
   color: rgba(255, 255, 255, 0.75);
}

/* ── STICKY BUTTON ── */
#q9-sticky-btn {
   position: fixed;
   bottom: 20px;
   right: 20px;
   z-index: 9998;
   background: #005eaa;
   color: #fff;
   border: none;
   padding: 14px 22px;
   border-radius: 50px;
   font-size: 14px;
   font-weight: 800;
   cursor: pointer;
   box-shadow: 0 4px 20px rgba(255, 0, 4, 0.4);
   transition:all 0.5s ease;
}

#q9-sticky-btn:hover{
    background: #ff0004;
    transition:all 0.5s ease;
}

#q9-sticky-btn.hidden {
   display: none;
}

@media (max-width: 992px) {
.form_right_side{
    display:none;
}
 .q9-body-row {
      grid-template-columns: 1fr;
   }
}

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 768px) {
   .q9-form-col {
      border-right: none;
      border-bottom: 1px solid #eee;
      padding: 10px 18px 10px;
   }

   .q9-trust-col {
      padding: 20px 18px;
   }

   .q9-top-row {
      padding: 10px 18px 10px;
   }

   .q9-top-h {
      font-size: 25px;
   }

   .q9-plan-grid {
      grid-template-columns: 1fr;
   }

   .q9-otp-row {
      gap: 6px;
   }

   .q9-otp-box {
      width: 40px;
      height: 44px;
      font-size: 17px;
   }

   .q9-stats-row {
      grid-template-columns: 1fr 1fr;
   }

   .q9-btn-back {
      flex: 0 0 75px;
      font-size: 13px;
      padding: 13px 8px;
   }
}
@media (max-width: 576px) {
.q9-body-row {
    min-height: auto;
}
.q9-pc {
    padding: 5px 10px;
}
.q9-btn-red{
    margin:0;
    padding:15px 25px !important;
}
}

@media (max-width: 420px) {
   .q9-otp-box {
      width: 36px;
      height: 40px;
      font-size: 15px;
   }
}
