/* Assets/css/styles.css */

/* -----------------------------
   Base / Reset
----------------------------- */
:root{
  --navy: #1f3e74;
  --navy-2: #19345f;
  --blue-soft: #bcd0e7;
  --sky: #8fb7dc;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: rgba(15, 23, 42, 0.15);
  --shadow: 0 8px 18px rgba(0,0,0,0.18);
  --shadow-soft: 0 6px 14px rgba(0,0,0,0.12);
  --radius: 14px;
  --radius-lg: 18px;
  --btn-red: #b22222;

  /* ✅ Green button variables */
  --btn-green: #2f9b3a;
  --btn-green-2: #3bb54a;

  /* ✅ NEW: dark panel behind the green pill (matches screenshot) */
  --login-panel: #2f2f2f;
  --login-panel-border: rgba(255,255,255,0.10);
  --login-panel-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -10px 20px rgba(0,0,0,0.35),
    0 8px 18px rgba(0,0,0,0.25);
}

*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #e9f1fb;
  overflow-x: hidden;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
a:focus, button:focus, input:focus, select:focus, textarea:focus{
  outline: 3px solid rgba(59,130,246,0.35);
  outline-offset: 2px;
}
.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* -----------------------------
   Background frame (matches screenshot feel)
----------------------------- */
.bg-frame{
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(255,255,255,0.75), rgba(255,255,255,0.1) 70%),
    linear-gradient(180deg, #86b2d8 0%, #e9f1fb 58%, #ffffff 100%);
}

/* -----------------------------
   Site container
----------------------------- */
.site{
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 16px 40px;
}

/* -----------------------------
   Header
----------------------------- */
.header{
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 18px;
  background: #ffffff;
}

.brand__logo{
  max-height: 64px;
  width: auto;
}

.brandtitle{
  flex: 1;
  display:flex;
  justify-content:center;
  min-width: 0;
}
.brandtitle__row{
  display:flex;
  align-items:baseline;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:center;
  line-height: 1.05;
}
.brandtitle__name{
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #0f3a86;
  text-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.brandtitle__suffix{
  font-size: 34px;
  font-weight: 800;
  color: #7b1e14;
  text-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.header__tools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
}

.iconbtn{
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
}
.iconbtn:hover{ background: rgba(0,0,0,0.05); }
.iconbtn__img{
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* -----------------------------
   Nav (pill bar)
----------------------------- */
.nav{
  background: linear-gradient(180deg, var(--navy), var(--navy-2));
  padding: 8px 10px;
}
.nav__inner{
  display:flex;
  align-items:center;
  gap: 10px;
}
.nav__hamburger{
  display:none;
  align-items:center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 8px 10px;
  border-radius: 12px;
  cursor:pointer;
}
.nav__hamburgerLines{
  width: 20px;
  height: 12px;
  position: relative;
  display:inline-block;
}
.nav__hamburgerLines:before,
.nav__hamburgerLines:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height: 2px;
  background: #fff;
  border-radius: 5px;
}
.nav__hamburgerLines:before{ top: 1px; }
.nav__hamburgerLines:after{ bottom: 1px; }
.nav__hamburgerText{ font-weight: 700; font-size: 13px; }

.nav__menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap: 18px;
  flex-wrap: nowrap;
  width: 100%;
  justify-content: center;
}
.nav__menu a{
  display:inline-block;
  color:#fff;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}
.nav__menu a:hover{
  background: rgba(255,255,255,0.12);
}
.nav__menu a:active{
  transform: translateY(1px);
}

/* -----------------------------
   Main grid
----------------------------- */
.main{
  margin-top: 16px;
}
.grid{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items:start;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow:hidden;
}
.card--soft{
  background: linear-gradient(180deg, #ffffff, #fbfbfb);
}
.card__head{
  padding: 14px 16px 8px;
}
.card__title{
  margin:0;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  color: #1c2d44;
}
.card__title--accent{
  color: #8b0000;
  font-style: italic;
}
.card__body{
  padding: 10px 16px 16px;
}

.divider{
  height:1px;
  background: rgba(0,0,0,0.08);
  margin: 14px 0;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:none;
  cursor:pointer;
  border-radius: 12px;
  font-weight: 800;
  padding: 10px 12px;
  user-select:none;
}
.btn:active{ transform: translateY(1px); }

/* ==========================================================
   ✅ ONLINE BANKING AREA: Dark panel + green pill button
   (matches your screenshot shadow look)
========================================================== */
.loginPanel{
  width: 100%;
  margin: 10px auto 14px;
  padding: 18px 14px;
  border-radius: 10px;
  background: var(--login-panel);
  border: 1px solid var(--login-panel-border);
  box-shadow: var(--login-panel-shadow);
}

/* base login button now becomes “green pill” inside that panel */
.btn--login{
  width: 100%;
  max-width: 210px;          /* keeps it looking like screenshot */
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 999px;      /* pill */
  background: linear-gradient(#3bb54a, #2f9b3a);
  color:#fff;
  border: 1px solid rgba(0,0,0,0.35);

  /* pill depth */
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.25),
    inset 0 -2px 0 rgba(0,0,0,0.18),
    0 3px 0 rgba(0,0,0,0.22),
    0 10px 18px rgba(0,0,0,0.20);
}
.btn--login:hover{ filter: brightness(1.03); }
.btn--login:active{
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.20),
    inset 0 -2px 0 rgba(0,0,0,0.22),
    0 2px 0 rgba(0,0,0,0.20),
    0 6px 12px rgba(0,0,0,0.20);
}
/* ========================================================== */

.signup{
  display:block;
  margin: 12px 0 2px;
  font-size: 16px;
  color: #9a1b12;
  font-style: italic;
  font-weight: 800;
  text-align:left;
}
.signup:hover{ text-decoration: underline; }

.minihead{
  margin: 6px 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #0f3a86;
}

.select{
  width: 100%;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 8px;
  padding: 10px 10px;
  font-weight: 700;
  color: #6b7280;
  background: #fff;
}
.hint{
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* Rates */
.rates{ display:flex; flex-direction:column; gap: 14px; }
.rateRow{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items:center;
}
.rateRow__value{
  display:flex;
  align-items:baseline;
  gap: 3px;
  color: #102a5e;
}
.rateRow__num{ font-size: 32px; font-weight: 900; }
.rateRow__pct{ font-size: 14px; font-weight: 900; margin-left: 1px; }
.rateRow__apy{ font-size: 10px; font-weight: 900; color: #1f3e74; margin-left: 6px; }
.rateRow__label{
  font-size: 13px;
  font-weight: 800;
  color: #102a5e;
}
.rateRow__name{ font-style: italic; }
.link{
  display:inline-block;
  color:#0f3a86;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
}
.link--center{ display:block; text-align:center; margin-top: 10px; }

/* -----------------------------
   Hero / Carousel
----------------------------- */
.card--hero{
  padding: 0;
}
.hero__frame{
  position: relative;
  background: #fff;
}
.hero__slides{
  position: relative;
  border-radius: var(--radius-lg);
  overflow:hidden;
}
.heroSlide{ display:none; }
.heroSlide.is-active{ display:block; }
.heroSlide__link{ display:block; }
.heroSlide__img{
  width: 100%;
  height: 320px;
  object-fit: cover;
  background: #e5e7eb;
}

/* corner overlays */
.heroCorner{
  position:absolute;
  width: 46px;
  height: 46px;
  object-fit: contain;
  pointer-events:none;
  opacity: 0.95;
}
.heroCorner--tl{ left: 8px; top: 8px; }
.heroCorner--tr{ right: 8px; top: 8px; }
.heroCorner--bl{ left: 10px; bottom: -16px; width: 28px; height: 28px; }
.heroCorner--br{ right: 10px; bottom: -16px; width: 28px; height: 28px; }

.heroTabs{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: transparent;
  gap: 0;
  margin-top: -2px;
}
.heroTab{
  position: relative;
  border: none;
  background: linear-gradient(180deg, #214680, #173661);
  color: #fff;
  font-weight: 800;
  padding: 14px 10px;
  cursor:pointer;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.heroTab:first-child{ border-bottom-left-radius: var(--radius-lg); }
.heroTab:last-child{ border-bottom-right-radius: var(--radius-lg); }
.heroTab.is-active{ background: linear-gradient(180deg, #254d90, #1c3f77); }
.heroTab:hover{ filter: brightness(1.04); }

/* -----------------------------
   Quicklinks
----------------------------- */
.quick{ margin-top: 14px; }
.quick__grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  padding: 14px;
}
.quickItem{
  border-right: 1px solid rgba(0,0,0,0.12);
  padding-right: 14px;
}
.quickItem:last-child{
  border-right:none;
  padding-right:0;
}
.quickItem__title{
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
  background: rgba(31,62,116,0.75);
  border-radius: 10px;
  padding: 8px 10px;
  display:inline-block;
}
.quickItem__text{
  margin: 10px 0 12px;
  font-size: 12px;
  color: #3b4757;
  line-height: 1.45;
}
.btn--small{
  background: var(--btn-red);
  color:#fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
}
.btn--small:hover{ filter: brightness(1.05); }

/* -----------------------------
   Footer
----------------------------- */
.footer{ margin-top: 18px; }
.footer__card{
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 14px 14px;
  text-align:center;
}
.footer__links{
  display:flex;
  flex-wrap: wrap;
  justify-content:center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #0f3a86;
}
.footer__links a{ text-decoration: underline; }
.footer__copy{
  margin: 8px 0 0;
  font-size: 12px;
  color: #0f172a;
  font-weight: 700;
}

/* -----------------------------
   ✅ Disclaimers (match original small gray text)
   - used for the new “after footer” disclaimer section too
----------------------------- */
.disclaimers{
  margin-top: 14px;
  padding: 10px 6px 0;
  color: rgba(0,0,0,0.42);
  font-size: 10.5px;          /* smaller like original */
  line-height: 1.55;
}

.disclaimers p{
  margin: 10px 0 0;
  border-top: 1px solid rgba(0,0,0,0.10);
  padding-top: 10px;
}

.note{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  margin-right: 8px;
  font-weight: 900;
  font-size: 10px;
  color: rgba(0,0,0,0.55);
}

/* centers the disclaimer block like the original page */
.disclaimers--full{
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
/* -----------------------------
   END DISCLAIMERS
----------------------------- */

/* -----------------------------
   Modal
----------------------------- */
.modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display:none;
}
.modal.is-open{ display:block; }
.modal__overlay{
  position:absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.modal__panel{
  position: relative;
  width: calc(100% - 32px);
  max-width: 520px;
  margin: 10vh auto 0;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.14);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.modal__title{
  margin:0;
  font-size: 16px;
  font-weight: 900;
  color: #0f3a86;
}
.modal__close{
  border:none;
  background: transparent;
  font-size: 28px;
  cursor:pointer;
  color:#111;
}
.modal__close:hover{ color: #b00000; }

.modal__body{ padding: 14px 16px 16px; }
.modal__avatar{
  display:flex;
  justify-content:center;
  margin: 6px 0 10px;
}
.modal__avatar img{
  width: 110px;
  height: 110px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.12);
}

.field{ display:block; margin-bottom: 10px; }
.field__label{
  display:block;
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 5px;
  color: #0f172a;
}
.field__input, .field__textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.2);
  font-size: 14px;
  background: #fff;
}
.field__textarea{ resize: vertical; min-height: 96px; }

.check{
  display:flex;
  gap: 8px;
  align-items:center;
  margin: 10px 0 12px;
  font-weight: 800;
  color: #334155;
  font-size: 13px;
}

.btn--primary{
  width: 100%;
  background: linear-gradient(180deg, #2d6cf0, #1f57c8);
  color:#fff;
  padding: 12px 12px;
  border-radius: 14px;
  box-shadow: 0 10px 16px rgba(31,87,200,0.22);
}
.btn--primary:hover{ filter: brightness(1.03); }

.modal__foot{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.btn--ghost{
  background: #b00000;
  color:#fff;
  border-radius: 999px;
  padding: 10px 14px;
}
.btn--ghost:hover{ filter: brightness(1.05); }

/* -----------------------------
   Message widget (bottom-right)
----------------------------- */
.msgWidget{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  width: 320px;
  max-width: calc(100% - 32px);
  font-family: Arial, Helvetica, sans-serif;
}
.msgWidget__bar{
  width: 100%;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  background: #0b66d6;
  color: #fff;
  font-weight: 900;
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  box-shadow: var(--shadow-soft);
}
.msgWidget__chev{ font-size: 14px; }
.msgWidget__panel{
  margin-top: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.14);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.msgForm{ padding: 12px 12px 12px; }
.msgForm__row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.msgHint{
  margin: 10px 0 0;
  font-size: 11px;
  color: rgba(0,0,0,0.55);
}

/* -----------------------------
   Responsive
----------------------------- */
@media (max-width: 1024px){
  .brandtitle__name, .brandtitle__suffix{ font-size: 28px; }
  .grid{ grid-template-columns: 320px 1fr; }
}

@media (max-width: 860px){
  .grid{ grid-template-columns: 1fr; }
  .brandtitle{ justify-content:flex-start; }
  .brandtitle__row{ justify-content:flex-start; }
  .nav__hamburger{ display:inline-flex; }
  .nav__menu{
    display:none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px 0 2px;
  }
  .nav__menu.is-open{ display:flex; }
  .nav__menu a{
    text-align:center;
    background: rgba(255,255,255,0.10);
    border-radius: 12px;
  }
  .heroSlide__img{ height: 260px; }
  .quick__grid{ grid-template-columns: 1fr; }
  .quickItem{
    border-right:none;
    padding-right:0;
    border-top: 1px solid rgba(0,0,0,0.10);
    padding-top: 12px;
  }
  .quickItem:first-child{ border-top:none; padding-top: 0; }

  /* on smaller screens let the pill stay centered */
  .btn--login{ max-width: 240px; }
}

@media (max-width: 520px){
  .site{ padding: 10px 12px 38px; }
  .header__inner{ padding: 12px 12px; }
  .brand__logo{ max-height: 56px; }
  .brandtitle__name, .brandtitle__suffix{ font-size: 22px; }
  .heroSlide__img{ height: 220px; }
  .msgWidget{ right: 12px; bottom: 12px; }
  .msgForm__row{ grid-template-columns: 1fr; }
}
