/* =====================================================================
   Select Wealth – Personal Finance Portal (PFP) theme
   Matches selectwealth.co.uk: Montserrat headings, Open Sans body,
   purple #6a2c70, deep purple #4a1e4f, lilac #f3ecf5, ink #2b2530
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Open+Sans:wght@400;600;700&display=swap');

/* ---------- Brand colours (replaces the light-blue secondary) ---------- */
:root {
  --color-primary: #6a2c70;
  --primary: #6a2c70;
  --color-secondary: #f3ecf5;
  --secondary: #f3ecf5;
  --color-primarylighttint: #e9c8ee;
  --color-body: #2b2530;
  --font-family-sans-serif: "Open Sans", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Typography ---------- */
body,
button, input, select, textarea, .btn {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif !important;
}
body { color: #403a46; }
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif !important;
  font-weight: 700 !important;
  color: #2b2530;
  letter-spacing: -.01em;
}
b, strong { font-weight: 700; }

/* ---------- Links ---------- */
a, .hyperlink, .text-primary { color: #6a2c70; }
a:hover, .hyperlink:hover { color: #4a1e4f; }
.hyperlink { text-decoration: underline; text-decoration-color: rgba(106,44,112,.4); text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  font-weight: 600 !important;
  border-radius: 999px;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn-primary,
.btn-primary:not(:disabled):not(.disabled):active {
  background-color: #6a2c70 !important;
  border-color: #6a2c70 !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #4a1e4f !important;
  border-color: #4a1e4f !important;
  color: #fff !important;
}
/* Secondary / plain buttons – purple outline like the main site */
.btn:not(.btn-primary):not(.btn-link):not(.btn-danger):not(.btn-success):not(.close) {
  background-color: #fff;
  border: 1.5px solid #6a2c70 !important;
  color: #6a2c70 !important;
}
.btn:not(.btn-primary):not(.btn-link):not(.btn-danger):not(.btn-success):not(.close):hover {
  background-color: #f3ecf5 !important;
  color: #4a1e4f !important;
}
.btn-secondary, .bg-secondary { background-color: #f3ecf5 !important; }
.btn:focus, .btn.focus, .form-control:focus {
  box-shadow: 0 0 0 3px rgba(106,44,112,.2) !important;
}

/* ---------- Header ---------- */
.page-masthead {
  background: #fff;
  border-bottom: 1px solid #e6dfe9;
  box-shadow: 0 6px 20px -16px rgba(52,17,56,.35);
}

/* Thin divider lines – soft lilac instead of strong purple */
.border-primary { border-color: #e0d3e4 !important; }

/* ---------- Landing hero ("Personal Finance Portal") ---------- */
.py-30:has(> .container > .mb-15 > h1),
.py-30:has(h1.font-50) {
  background: linear-gradient(120deg, #341138 0%, #4a1e4f 55%, #6a2c70 100%);
  width: 100%;
}
.py-30:has(h1.font-50) h1,
.py-30:has(h1.font-50) .mt-10,
.py-30:has(h1.font-50) .mb-05 {
  color: #fff !important;
}
.py-30:has(h1.font-50) h1 { font-size: 44px; line-height: 1.15; }
.py-30:has(h1.font-50) .btn {
  background: #fff !important;
  border-color: #fff !important;
  color: #4a1e4f !important;
}
.py-30:has(h1.font-50) .btn:hover { background: #e9c8ee !important; border-color: #e9c8ee !important; }

/* Light grey panels → soft lilac wash */
.bg-altlight, .bg-light { background-color: #f7f3f8 !important; }
.bg-altlight.d-flex:has(.bg-white) { background-color: #fff !important; }

/* ---------- Cards, panels, tables ---------- */
.card {
  border: 1px solid #e6dfe9 !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 40px -30px rgba(74,30,79,.45);
  overflow: hidden;
}
.card-header {
  background-color: #f3ecf5 !important;
  border-bottom: 1px solid #e0d3e4 !important;
  color: #2b2530;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
}
.table thead th {
  background-color: #f3ecf5;
  color: #2b2530;
  border-bottom: 2px solid #e0d3e4 !important;
  font-weight: 700;
}
.table td, .table th { border-color: #eee6f0 !important; }

/* ---------- Forms ---------- */
.form-control, .custom-select {
  border: 1px solid #cdbfd2;
  border-radius: 8px;
  color: #2b2530;
}
.form-control:focus, .custom-select:focus { border-color: #6a2c70; }
label { color: #2b2530; font-weight: 600; }
.custom-control-input:checked ~ .custom-control-label::before {
  background-color: #6a2c70 !important;
  border-color: #6a2c70 !important;
}

/* ---------- Navigation / tabs (logged-in area) ---------- */
.nav-link { color: #4a1e4f; }
.nav-link:hover { color: #6a2c70; }
.nav-link.active,
.nav-pills .nav-link.active,
.nav-tabs .nav-link.active {
  color: #6a2c70 !important;
  border-color: #6a2c70 !important;
  font-weight: 700;
}
.nav-pills .nav-link.active { background-color: #6a2c70 !important; color: #fff !important; }

/* ---------- Footer – dark, like the main site ---------- */
footer.bg-altlight {
  background-color: #2b2530 !important;
  color: #d9d2dd !important;
}
footer.bg-altlight a,
footer.bg-altlight .hyperlink {
  color: #ffffff !important;
  text-decoration-color: rgba(255,255,255,.4);
}
footer.bg-altlight a:hover { color: #e9c8ee !important; }
footer.bg-altlight small { color: #9d93a3; }

/* ---------- Mobile ---------- */
@media (max-width: 575px) {
  .py-30:has(h1.font-50) h1 { font-size: 32px; }
}

.login-logo img,
.brand-logo img,
.navbar-brand img {
width: 220px !important;
height: auto !important;
max-width: 220px !important;
}