/* =====================================================================
   Simplify theme  (landing page + sign in / sign up pages)
   Two colours: .sf-green (default) and .sf-blue  -  chosen in Admin > Appearance > Themes
   ===================================================================== */
.sf-body {
  --p: #4ab34a; --p-dark: #348a36; --p-light: #9ad79a; --lime: #86c832;
  --dark: #0f3d12; --bg: #ecf5ed; --field: #ecf5ed; --line: #dcebdc; --ink: #1b2b1b; --muted: #4d5f4d;
}
.sf-body.sf-blue {
  --p: #2f7de1; --p-dark: #1f5fb8; --p-light: #9cc4f5; --lime: #46b8ee;
  --dark: #0b2a55; --bg: #eaf2fc; --field: #eaf2fc; --line: #d8e5f7; --ink: #14233b; --muted: #4a5d78;
}
.sf-body *, .sf-body *::before, .sf-body *::after { box-sizing: border-box; }
.sf-body { margin: 0; font-family: "Cabin", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
.sf-body img { max-width: 100%; }
.sf-body a { color: var(--p); text-decoration: none; }
.sf-body a:hover { text-decoration: underline; }
.sf-body .d-none { display: none !important; }
.sf-body h1, .sf-body h2, .sf-body h3, .sf-body h4 { margin: 0; color: var(--dark); line-height: 1.2; }
.sf-body p { margin: 0; }
.sf-wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.sf-narrow { max-width: 880px; }

/* ---------- header ---------- */
.sf-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.sf-bar { max-width: 1100px; margin: 0 auto; padding: 0 20px; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }
.sf-brand { font-size: 22px; font-weight: 700; color: var(--ink) !important; text-decoration: none !important; display: inline-flex; align-items: center; }
.sf-brand img { max-height: 38px; width: auto; }
.sf-burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 11px 8px; flex-direction: column; justify-content: space-between; }
.sf-burger span { display: block; height: 2px; background: var(--p); border-radius: 2px; transition: transform .2s, opacity .2s; }
.sf-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.sf-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sf-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.sf-nav { display: flex; align-items: center; gap: 22px; }
.sf-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sf-menu .nav-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; font-size: 18px; font-weight: 500; color: var(--dark); text-decoration: none !important; }
.sf-menu .nav-link:hover { background: var(--bg); }
.sf-menu .nav-link.is-active, .sf-menu .active > .nav-link { color: var(--p); }
.sf-i { flex: 0 0 auto; }
.sf-lang, .sf-body select.sf-lang {
  appearance: none; -webkit-appearance: none; min-width: 150px; padding: 10px 40px 10px 16px; border: 0; border-bottom: 3px solid var(--p-dark); border-radius: 12px; background: var(--p) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: #fff; font: 700 17px/1.2 inherit; font-family: inherit; cursor: pointer;
}
.sf-lang option { color: #1b2b1b; background: #fff; }

/* ---------- buttons / fields ---------- */
.sf-btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border: 0; border-bottom: 3px solid var(--p-dark); border-radius: 8px; background: var(--p); color: #fff !important; font: 700 16px/1.2 inherit; font-family: inherit; cursor: pointer; text-decoration: none !important; transition: filter .15s, transform .1s; }
.sf-btn:hover { filter: brightness(1.06); }
.sf-btn:active { transform: translateY(1px); }
.sf-btn-block { width: 100%; }
.sf-btn.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.sf-btn.btn-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: sf-spin .8s linear infinite; }
@keyframes sf-spin { to { transform: rotate(360deg); } }
.sf-field { margin-bottom: 16px; }
.sf-field label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 700; color: var(--dark); }
.sf-input { display: block; width: 100%; height: 48px; padding: 0 14px; border: 0; border-bottom: 2px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); font: 16px/1.2 inherit; font-family: inherit; outline: 0; box-shadow: 0 1px 2px rgba(15,61,18,.06); }
.sf-input:focus { border-bottom-color: var(--p); box-shadow: 0 0 0 3px rgba(74,179,74,.18); }
.sf-blue .sf-input:focus { box-shadow: 0 0 0 3px rgba(47,125,225,.2); }
select.sf-input { padding-right: 10px; }
.sf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sf-pw { position: relative; }
.sf-pw .sf-input { padding-right: 160px; }
.sf-forgot { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; font-weight: 500; }
.sf-check { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; font-size: 15px; cursor: pointer; }
.sf-check input { position: absolute; opacity: 0; pointer-events: none; }
.sf-box { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 6px; background: var(--field); border: 1px solid var(--line); position: relative; }
.sf-check input:checked + .sf-box { background: var(--p); border-color: var(--p); }
.sf-check input:checked + .sf-box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sf-check input:focus-visible + .sf-box { box-shadow: 0 0 0 3px rgba(74,179,74,.3); }
.sf-alt { text-align: center; margin-top: 14px; font-size: 15px; }
.alert-message-reponse { margin: 0 0 14px; }
.alert-message-reponse .alert { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; font-size: 15px; }
.alert-message-reponse .alert-warning { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-message-reponse .alert-success { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.alert-message-reponse .fe { display: none; }

/* ---------- hero ---------- */
.sf-hero { position: relative; z-index: 3; background: var(--bg); padding: 76px 20px 0; }
.sf-hero-in { max-width: 880px; margin: 0 auto; }
.sf-hero h1 { font-size: clamp(34px, 5.2vw, 52px); font-weight: 700; line-height: 1.12; margin-bottom: 10px; }
.sf-sub { font-size: 15px; color: var(--ink); margin-bottom: 14px; }
.sf-login { position: relative; z-index: 4; background: #fff; border-radius: 12px; padding: 28px 30px 24px; box-shadow: 0 10px 34px rgba(15,61,18,.10); }
.sf-blue .sf-login { box-shadow: 0 10px 34px rgba(11,42,85,.12); }
.sf-hero + .sf-ridge { margin-top: -90px; }

/* google button (script's own renderer) in this theme */
.sf-body .gl-wrap.gl-t-simplify { margin: 14px 0 0; }
.sf-body .gl-wrap.gl-t-simplify .gl-or { display: none; }
.sf-body .gl-wrap.gl-t-simplify .gl-btn { min-height: 46px; padding: 11px 16px; background: #fff; border: 1px solid #cfd8cf; border-bottom: 3px solid #b9c4b9; border-radius: 8px; color: var(--ink) !important; font: 500 16px/1.2 inherit; font-family: inherit; }
.sf-body .gl-wrap.gl-t-simplify .gl-btn:hover { background: #f7faf7; }

/* ---------- ridges (mountain edges between sections) ---------- */
.sf-ridge { position: relative; display: block; height: clamp(70px, 10vw, 140px); line-height: 0; overflow: hidden; }
.sf-ridge svg { display: block; width: 100%; height: 100%; }
.sf-ridge-top { background: var(--bg); position: relative; z-index: 1; }
.sf-ridge-top .sf-l { fill: var(--p-light); }
.sf-ridge-top .sf-m { fill: var(--p); }
.sf-ridge-bottom { background: var(--lime); }
.sf-ridge-bottom .sf-l2 { fill: var(--p-light); opacity: .8; }
.sf-ridge-bottom .sf-p { fill: var(--bg); }
.sf-ridge-bottom .sf-l2 { fill: #c9e8a8; }
.sf-blue .sf-ridge-bottom .sf-l2 { fill: #b8dcf8; }

/* ---------- sections ---------- */
.sf-green-sec { position: relative; z-index: 1; color: #fff; padding: 20px 0 30px; background: linear-gradient(180deg, var(--p) 0%, var(--p) 55%, var(--lime) 100%); }
.sf-pale-sec { background: var(--bg); padding: 56px 0 64px; }
.sf-h2 { text-align: center; font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; margin-bottom: 8px; }
.sf-h2-w { color: #fff !important; }
.sf-lead { text-align: center; color: var(--ink); font-size: 16px; margin-bottom: 34px; }
.sf-lead-w { color: #fff; }

.sf-feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 50px; }
.sf-fcard { background: #fff; border-radius: 8px; padding: 26px 26px 24px; color: var(--ink); box-shadow: 0 6px 20px rgba(15,61,18,.10); }
.sf-fico { height: 118px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--bg); color: var(--p); margin-bottom: 18px; }
.sf-fcard h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.sf-fcard p { font-size: 15px; color: var(--ink); }

.sf-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 10px 0 40px; }
.sf-step { text-align: center; position: relative; padding: 0 6px; }
.sf-step:nth-child(odd) { padding-top: 50px; }
.sf-num { width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(15,61,18,.12); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; color: var(--dark); position: relative; }
.sf-step:nth-child(odd) .sf-num::after { content: ""; position: absolute; left: 60%; top: -6px; width: 110px; height: 40px; border-top: 2px solid var(--p); border-radius: 100% 100% 0 0 / 100% 100% 0 0; transform: scaleX(1) translateX(10px); }
.sf-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.sf-step p { font-size: 15px; color: var(--ink); }

.sf-stories { padding-top: 30px; }
.sf-slider { display: flex; align-items: center; justify-content: center; gap: 22px; max-width: 880px; margin: 0 auto; }
.sf-slides { flex: 1 1 auto; min-width: 0; display: grid; }
.sf-slide { grid-area: 1 / 1; margin: 0; background: #fff; border-radius: 6px; padding: 22px 28px; color: var(--ink); opacity: 0; visibility: hidden; transition: opacity .35s; }
.sf-slide.is-on { opacity: 1; visibility: visible; }
.sf-slide b { display: block; color: var(--dark); margin-bottom: 8px; }
.sf-slide p { font-size: 15px; line-height: 1.6; }
.sf-arrow { flex: 0 0 44px; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.sf-arrow:hover { background: rgba(255,255,255,.18); }
.sf-dots { display: flex; justify-content: center; gap: 10px; margin: 18px 0 40px; }
.sf-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.sf-dots button.is-on { background: #fff; }

.sf-q { background: #fff; border-radius: 6px; margin-bottom: 14px; box-shadow: 0 3px 12px rgba(15,61,18,.07); }
.sf-q summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 30px; font-size: 18px; font-weight: 700; color: var(--dark); position: relative; }
.sf-q summary::-webkit-details-marker { display: none; }
.sf-q summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 1.5px solid var(--p); border-radius: 50%; color: var(--p); font-size: 20px; font-weight: 400; line-height: 22px; text-align: center; }
.sf-q[open] summary::after { content: "\2212"; }
.sf-q p { padding: 0 30px 24px; color: var(--muted); }

/* ---------- auth pages ---------- */
.sf-auth { min-height: calc(100vh - 64px - 150px); padding: 56px 20px 70px; background: var(--bg); }
.sf-auth-in { max-width: 520px; margin: 0 auto; }
.sf-auth-in > h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 10px; }
.sf-auth-in > .sf-sub { margin-bottom: 16px; }
.sf-center .sf-login { text-align: center; }
.sf-center h1 { font-size: 26px; margin-bottom: 8px; }
.sf-center .sf-sub { margin-bottom: 18px; }

/* ---------- footer ---------- */
.sf-footer { background: var(--dark); color: #cfe3cf; padding: 46px 0 18px; }
.sf-blue .sf-footer { color: #cfdcf0; }
.sf-foot-grid { display: grid; grid-template-columns: 2fr 1fr auto; gap: 30px; }
.sf-footer h4 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.sf-footer p { font-size: 14px; max-width: 420px; }
.sf-footer ul { list-style: none; margin: 0; padding: 0; }
.sf-footer li { margin-bottom: 8px; }
.sf-footer a { color: #cfe3cf; }
.sf-blue .sf-footer a { color: #cfdcf0; }
.sf-social { display: flex; gap: 10px; align-items: flex-start; }
.sf-social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; }
.sf-social a:hover { background: var(--p); text-decoration: none; }
.sf-copy { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; text-align: center; }

/* ---------- notification pop-up (bootstrap js drives it) ---------- */
.sf-body .modal { display: none; position: fixed; inset: 0; z-index: 1050; overflow-x: hidden; overflow-y: auto; }
.sf-body .modal.show { display: block; }
.sf-body .modal-open { overflow: hidden; }
.sf-body .modal-dialog { max-width: 520px; margin: 70px auto; padding: 0 14px; }
.sf-body .modal-content { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.sf-body .modal-header, .sf-body .modal-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.sf-body .modal-header { border-bottom: 1px solid var(--line); }
.sf-body .modal-body { padding: 20px; }
.sf-body .modal-title { font-size: 18px; }
.sf-body .close { border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-backdrop { position: fixed; inset: 0; z-index: 1040; background: #000; }
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.show { opacity: .5; }

/* ---------- mobile / tablet ---------- */
@media (max-width: 991px) {
  .sf-feat { grid-template-columns: repeat(2, 1fr); }
  .sf-foot-grid { grid-template-columns: 1fr 1fr; }
  .sf-social { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .sf-burger { display: flex; }
  .sf-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 8px; background: #fff; padding: 12px 20px 18px; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(15,61,18,.08); }
  .sf-nav.is-open { display: flex; }
  .sf-lang, .sf-body select.sf-lang { width: 100%; }
  .sf-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .sf-menu .nav-link { padding: 14px 4px; font-size: 20px; }
}
@media (max-width: 640px) {
  .sf-hero { padding-top: 48px; }
  .sf-login { padding: 22px 18px 20px; }
  .sf-pw .sf-input { padding-right: 14px; }
  .sf-forgot { position: static; transform: none; display: block; text-align: right; margin-top: 6px; }
  .sf-row2 { grid-template-columns: 1fr; gap: 0; }
  .sf-steps { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .sf-step:nth-child(odd) { padding-top: 0; }
  .sf-step:nth-child(odd) .sf-num::after { display: none; }
  .sf-slider { gap: 6px; }
  .sf-arrow { flex-basis: 34px; width: 34px; }
  .sf-q summary { font-size: 16px; padding: 18px 56px 18px 20px; }
  .sf-q p { padding: 0 20px 20px; }
  .sf-foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .sf-feat { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .sf-slide, .sf-btn, .sf-burger span { transition: none; } }
