/* =====================================================
   Future Bharat — Registration Modal
   Scoped under .fb-reg-* to avoid theme conflicts
   ===================================================== */

/* Header Register button */
.fb-reg-trigger {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   background: #ce0037;
   color: #fff !important;
   font-size: 14px;
   font-weight: 600;
   padding: 10px 22px!important;
   border-radius: 50px;
   border: none;
   cursor: pointer;
   text-decoration: none;
   transition: all .3s ease;
   letter-spacing: .3px;
   line-height: 1;
}
.fb-reg-trigger:hover {
   background: #a8002d;
   transform: translateY(-2px);
   box-shadow: 0 10px 22px rgba(206, 0, 55, 0.32);
}
.fb-reg-trigger i { font-size: 13px; }

/* Overlay */
.fb-reg-overlay {
   position: fixed;
   inset: 0;
   background: rgba(10, 22, 40, 0.55);
   backdrop-filter: blur(6px);
   -webkit-backdrop-filter: blur(6px);
   z-index: 9999;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 20px;
   opacity: 0;
   visibility: hidden;
   transition: opacity .3s ease, visibility .3s ease;
}
.fb-reg-overlay.is-open {
   opacity: 1;
   visibility: visible;
}

/* Modal */
.fb-reg-modal {
   background: #fff;
   width: 100%;
   max-width: 760px;
   max-height: 92vh;
   border-radius: 20px;
   box-shadow: 0 30px 70px -10px rgba(0, 73, 118, 0.35);
   display: flex;
   flex-direction: column;
   overflow: hidden;
   transform: translateY(30px) scale(.97);
   opacity: 0;
   transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
}
.fb-reg-overlay.is-open .fb-reg-modal {
   transform: translateY(0) scale(1);
   opacity: 1;
}

/* Header */
.fb-reg-header {
   padding: 24px 28px;
   background: linear-gradient(135deg, #004976 0%, #003658 100%);
   color: #fff;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 16px;
   position: relative;
}
.fb-reg-header h3 {
   margin: 0;
   font-size: 22px;
   font-weight: 700;
   color: #fff;
   line-height: 1.3;
}
.fb-reg-header p {
   margin: 4px 0 0;
   font-size: 13.5px;
   color: rgba(255,255,255,0.78);
}
.fb-reg-close {
   width: 38px;
   height: 38px;
   border-radius: 50%;
   background: rgba(255,255,255,0.15);
   color: #fff;
   border: none;
   cursor: pointer;
   font-size: 16px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   transition: all .25s ease;
   flex-shrink: 0;
}
.fb-reg-close:hover { background: #a87521; transform: rotate(90deg); }

/* Body */
.fb-reg-body {
   padding: 28px;
   overflow-y: auto;
   flex: 1;
}
.fb-reg-body::-webkit-scrollbar { width: 6px; }
.fb-reg-body::-webkit-scrollbar-thumb { background: #c8d2dd; border-radius: 10px; }

/* Step transitions */
.fb-reg-step { animation: fbRegFade .35s ease; }
@keyframes fbRegFade {
   from { opacity: 0; transform: translateY(8px); }
   to { opacity: 1; transform: translateY(0); }
}

/* Category cards */
.fb-reg-cat-intro {
   font-size: 14.5px;
   color: #5c6275;
   margin: 0 0 22px;
   line-height: 1.6;
}
.fb-reg-categories {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 16px;
}
.fb-reg-cat {
   background: #f8fafc;
   border: 2px solid #e6ecf3;
   border-radius: 14px;
   padding: 22px 18px;
   text-align: left;
   cursor: pointer;
   transition: all .3s ease;
   display: flex;
   align-items: flex-start;
   gap: 14px;
   font-family: inherit;
}
.fb-reg-cat:hover {
   border-color: #004976;
   background: #fff;
   transform: translateY(-3px);
   box-shadow: 0 14px 28px rgba(0,73,118,0.12);
}
.fb-reg-cat.is-active {
   border-color: #ce0037;
   background: #fff;
   box-shadow: 0 14px 28px rgba(206,0,55,0.15);
}
.fb-reg-cat-icon {
   width: 46px;
   height: 46px;
   border-radius: 12px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-size: 20px;
   color: #fff;
   flex-shrink: 0;
   background: linear-gradient(135deg, #004976, #00669e);
}
.fb-reg-cat[data-cat="college"] .fb-reg-cat-icon { background: linear-gradient(135deg, #ce0037, #ff3464); }
.fb-reg-cat[data-cat="coaching"] .fb-reg-cat-icon { background: linear-gradient(135deg, #0AB99D, #14d8b8); }
.fb-reg-cat[data-cat="institute"] .fb-reg-cat-icon { background: linear-gradient(135deg, #1a1a2e, #3a3a55); }

.fb-reg-cat-info strong {
   display: block;
   font-size: 15.5px;
   font-weight: 700;
   color: #1a1a2e;
   margin-bottom: 4px;
}
.fb-reg-cat-info span {
   display: block;
   font-size: 12.5px;
   color: #6b7787;
   line-height: 1.5;
}

/* Form */
.fb-reg-back {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   background: transparent;
   border: none;
   color: #004976;
   font-size: 13px;
   font-weight: 600;
   cursor: pointer;
   padding: 0;
   margin-bottom: 14px;
}
.fb-reg-back:hover { color:  linear-gradient(135deg, #a87521, #004976) !important;
; }

.fb-reg-form-title {
   font-size: 18px;
   font-weight: 700;
   color: #1a1a2e;
   margin: 0 0 18px;
}
.fb-reg-form-title span { color:  linear-gradient(135deg, #a87521, #004976) !important;
; }

.fb-reg-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 14px 16px;
}
.fb-reg-field { display: flex; flex-direction: column; }
.fb-reg-field.full { grid-column: 1 / -1; }
.fb-reg-field label {
   font-size: 12.5px;
   font-weight: 600;
   color: #2b2f3a;
   margin-bottom: 6px;
   letter-spacing: .2px;
}
.fb-reg-field label .req { color: #ce0037; margin-left: 2px; }
.fb-reg-field input,
.fb-reg-field select,
.fb-reg-field textarea {
   width: 100%;
   height: 44px;
   padding: 0 14px;
   border: 1.5px solid #e1e7ef;
   border-radius: 10px;
   background: #fff;
   font-size: 14px;
   color: #1a1a2e;
   font-family: inherit;
   transition: all .25s ease;
   outline: none;
}
.fb-reg-field textarea {
   height: 88px;
   padding: 12px 14px;
   resize: vertical;
}
.fb-reg-field input:focus,
.fb-reg-field select:focus,
.fb-reg-field textarea:focus {
   border-color: #004976;
   box-shadow: 0 0 0 4px rgba(0,73,118,0.10);
}
.fb-reg-field.has-error input,
.fb-reg-field.has-error select,
.fb-reg-field.has-error textarea {
   border-color: #ce0037;
   box-shadow: 0 0 0 4px rgba(206,0,55,0.08);
}
.fb-reg-error {
   display: none;
   font-size: 11.5px;
   color: #ce0037;
   margin-top: 5px;
   font-weight: 500;
}
.fb-reg-field.has-error .fb-reg-error { display: block; }

/* Actions */
.fb-reg-actions {
   margin-top: 22px;
   display: flex;
   justify-content: flex-end;
   gap: 10px;
}
.fb-reg-submit {
   /* background: #ce0037; */
   background:  linear-gradient(135deg, #a87521, #004976) !important;

   color: #fff;
   border: none;
   padding: 0 28px;
   height: 48px;
   border-radius: 10px;
   font-size: 14.5px;
   font-weight: 700;
   letter-spacing: .4px;
   cursor: pointer;
   display: inline-flex;
   align-items: center;
   gap: 10px;
   transition: all .3s ease;
   min-width: 160px;
   justify-content: center;
}
.fb-reg-submit:hover { background:  linear-gradient(135deg, #a87521, #004976) !important; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(206,0,55,0.32); }
.fb-reg-submit:disabled { opacity: .75; cursor: not-allowed; transform: none; box-shadow: none; }
.fb-reg-spinner {
   width: 16px; height: 16px;
   border: 2px solid rgba(255,255,255,0.35);
   border-top-color: #fff;
   border-radius: 50%;
   animation: fbRegSpin .7s linear infinite;
   display: none;
}
.fb-reg-submit.is-loading .fb-reg-spinner { display: inline-block; }
.fb-reg-submit.is-loading .fb-reg-submit-text { opacity: .85; }
@keyframes fbRegSpin { to { transform: rotate(360deg); } }

/* Success */
.fb-reg-success { text-align: center; padding: 30px 10px 10px; }
.fb-reg-success-icon {
   width: 78px;
   height: 78px;
   border-radius: 50%;
   background: linear-gradient(135deg, #0AB99D, #14d8b8);
   color: #fff;
   font-size: 32px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   margin-bottom: 18px;
   box-shadow: 0 14px 30px rgba(10,185,157,0.35);
   animation: fbRegPop .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes fbRegPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fb-reg-success h4 {
   font-size: 22px;
   font-weight: 700;
   color: #1a1a2e;
   margin: 0 0 8px;
}
.fb-reg-success p {
   font-size: 14.5px;
   color: #5c6275;
   max-width: 380px;
   margin: 0 auto 22px;
   line-height: 1.6;
}
.fb-reg-success button {
   background: #004976;
   color: #fff;
   border: none;
   padding: 12px 28px;
   border-radius: 10px;
   font-size: 14px;
   font-weight: 600;
   cursor: pointer;
   transition: all .25s ease;
}
.fb-reg-success button:hover { background: #003658; transform: translateY(-2px); }

/* Body lock */
body.fb-reg-lock,
html.fb-reg-lock { overflow: hidden !important; height: 100%; touch-action: none; }

/* Mobile header trigger alignment — force perfect vertical centering */
.it-header-2-bar,
.it-header-2-right {
   display: flex !important;
   align-items: center !important;
   justify-content: flex-end !important;
   gap: 10px !important;
}
.it-header-2-bar .fb-reg-trigger,
.it-header-2-right .fb-reg-trigger {
   height: 40px;
   padding: 0 16px !important;
   font-size: 13px;
   line-height: 40px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   white-space: nowrap;
   border-radius: 6px;
   margin: 0 !important;
   vertical-align: middle;
}
.it-header-2-bar .fb-reg-trigger i,
.it-header-2-right .fb-reg-trigger i {
   line-height: 1;
   font-size: 12px;
   margin-right: 2px;
}
.it-header-2-bar button.it-menu-bar,
.it-header-2-bar button.it-offcanvas-open-btn,
.it-header-2-right .it-menu-bar,
.it-header-2-right button {
   height: 40px;
   width: 45px;
   line-height: 1;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   margin: 0 !important;
   vertical-align: middle;
}

/* ==========================================================
   Offcanvas (hamburger) mobile menu — Register item fix
   The desktop nav is cloned into .it-menu-mobile, so the
   Register pill needs to be reset to a properly-spaced
   list item, not a tight pill touching the top border.
   ========================================================== */
.it-menu-mobile {
   padding-top: 14px;
}
.it-menu-mobile ul li > a.fb-reg-trigger {
   /* Reset desktop pill styles inside offcanvas */
   display: flex !important;
   align-items: center;
   justify-content: center;
   gap: 8px;
   width: calc(100% - 30px);
   margin: 18px 15px 10px !important;
   height: 48px;
   padding: 0 20px !important;
   background:  linear-gradient(135deg, #a87521, #004976) !important;
   color: #fff !important;
   font-size: 14px !important;
   font-weight: 600 !important;
   border-radius: 8px !important;
   text-transform: none !important;
   line-height: 1 !important;
   box-shadow: 0 8px 20px rgba(206, 0, 55, 0.25);
   transition: all .25s ease;
}
.it-menu-mobile ul li > a.fb-reg-trigger:hover {
   /* background: #a8002d !important;
    */
   background:  linear-gradient(135deg, #a87521, #004976) !important;

    transform: translateY(-2px);
}
.it-menu-mobile ul li > a.fb-reg-trigger i {
   color: #fff !important;
   font-size: 13px;
   margin: 0 !important;
}
/* Separate the Register item visually with a top border */
.it-menu-mobile ul li:has(> a.fb-reg-trigger) {
   /* border-top: 1px solid #e6ecf3; */
   margin-top: 10px;
   padding-top: 4px;
   list-style: none;
}

/* Responsive */
@media (max-width: 575px) {
   .fb-reg-overlay { padding: 0; align-items: flex-end; }
   .fb-reg-modal {
      max-height: 96vh;
      border-radius: 20px 20px 0 0;
   }
   .fb-reg-header { padding: 20px 20px; }
   .fb-reg-header h3 { font-size: 19px; }
   .fb-reg-body { padding: 20px 18px 20px; }
   .fb-reg-categories,
   .fb-reg-grid { grid-template-columns: 1fr; }
   .fb-reg-actions {
      position: sticky;
      bottom: 0;
      background: #fff;
      margin: 18px -18px -20px;
      padding: 14px 18px;
      box-shadow: 0 -8px 18px rgba(0,0,0,0.06);
   }
   .fb-reg-submit { width: 100%; min-width: 0; }
   /* Smaller register pill in mobile bar */
   .it-header-2-bar .fb-reg-trigger,
   .it-header-2-right .fb-reg-trigger {
      height: 34px;
      padding: 0 12px !important;
      font-size: 12.5px;
   }
}


      /* Policy / Terms page styles */
      .fb-policy-area { padding: 100px 0 110px; background: #f8fafc; }
      .fb-policy-wrap { background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 73, 118, 0.08); padding: 55px 55px 50px; border: 1px solid rgba(0, 73, 118, 0.08); }
      .fb-policy-meta { display: inline-block; background: linear-gradient(135deg, #a87521, #004976); color: #fff; padding: 6px 16px; border-radius: 30px; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 18px; }
      .fb-policy-wrap h1 { font-size: 36px; font-weight: 700; color: #0b1a2b; margin-bottom: 12px; line-height: 1.25; }
      .fb-policy-intro { font-size: 16px; color: #4a5b6d; line-height: 1.7; margin-bottom: 0; }
      .fb-policy-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(0,73,118,0.18), transparent); margin: 35px 0 30px; border: 0; }
      .fb-policy-section { margin-bottom: 38px; }
      .fb-policy-section:last-child { margin-bottom: 0; }
      .fb-policy-section h2 { font-size: 22px; font-weight: 700; color: #004976; margin-bottom: 14px; display: flex; align-items: flex-start; gap: 12px; line-height: 1.35; }
      .fb-policy-section h2 .fb-num { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; background: #ce0037; color: #fff; border-radius: 8px; font-size: 14px; font-weight: 700; flex-shrink: 0; }
      .fb-policy-section h3 { font-size: 17px; font-weight: 600; color: #0b1a2b; margin: 18px 0 10px; }
      .fb-policy-section p { font-size: 15.5px; color: #4a5b6d; line-height: 1.75; margin-bottom: 12px; }
      .fb-policy-section ul { list-style: none; padding-left: 0; margin: 0 0 14px; }
      .fb-policy-section ul li { position: relative; padding-left: 26px; font-size: 15.5px; color: #4a5b6d; line-height: 1.7; margin-bottom: 8px; }
      .fb-policy-section ul li::before { content: ''; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: #0AB99D; }
      .fb-policy-callout { background: linear-gradient(135deg, rgba(206,0,55,0.06), rgba(0,73,118,0.06)); border-left: 4px solid #a87521; padding: 16px 20px; border-radius: 8px; margin: 14px 0 6px; }
      .fb-policy-callout strong { color: #a87521; }
      .fb-policy-callout.warn { border-left-color: #a87521; background: linear-gradient(135deg, rgba(206,0,55,0.10), rgba(206,0,55,0.04)); }
      .fb-policy-callout.warn strong { color: #a87521; }
      .fb-policy-pill { display: inline-block; background: #fff3cd; color: #8a6d00; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-right: 6px; }
      .fb-fee-card { display: flex; align-items: center; gap: 18px; background: linear-gradient(135deg, #004976, #0a6da8); color: #fff; padding: 18px 22px; border-radius: 12px; margin: 12px 0 16px; box-shadow: 0 8px 22px rgba(0, 73, 118, 0.18); }
      .fb-fee-card .fb-fee-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
      .fb-fee-card .fb-fee-text { line-height: 1.4; }
      .fb-fee-card .fb-fee-text strong { font-size: 20px; display: block; }
      .fb-fee-card .fb-fee-text span { font-size: 13.5px; opacity: 0.9; }
      .fb-policy-contact { background: #0b1a2b; color: #fff; border-radius: 12px; padding: 30px 32px; margin-top: 10px; }
      .fb-policy-contact h3 { color: #fff; margin: 0 0 10px; font-size: 20px; }
      .fb-policy-contact p { color: rgba(255,255,255,0.85); margin: 0 0 8px; font-size: 15px; }
      .fb-policy-contact a { color: #0AB99D; font-weight: 600; text-decoration: none; }
      .fb-policy-contact a:hover { color: #fff; text-decoration: underline; }
      .fb-policy-ack { margin-top: 30px; padding: 18px 22px; background: #f1f5f9; border-radius: 10px; text-align: center; font-style: italic; color: #4a5b6d; font-size: 15px; }
      @media (max-width: 767px) {
         .fb-policy-area { padding: 70px 0 80px; }
         .fb-policy-wrap { padding: 32px 22px 28px; border-radius: 10px; }
         .fb-policy-wrap h1 { font-size: 26px; }
         .fb-policy-section h2 { font-size: 19px; gap: 10px; }
         .fb-policy-section h2 .fb-num { min-width: 30px; height: 30px; font-size: 13px; }
         .fb-policy-section p, .fb-policy-section ul li { font-size: 15px; }
         .fb-policy-contact { padding: 22px 20px; }
         .fb-fee-card { padding: 14px 16px; gap: 14px; }
         .fb-fee-card .fb-fee-text strong { font-size: 18px; }
      }