/* StudyNest public footer. Uses the existing homepage's container and interactions. */
.sn-home .sn-site-footer {
  --sn-footer-link-size: 16px;
  margin-top: 24px;
  background: #103c30;
  color: #fbf8ed;
  border-top: 3px solid #e8c884;
}
.sn-site-footer .sn-footer-inner { padding: 0 13px; }
.sn-site-footer .sn-footer-invitation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 52px 0 46px;
  border-bottom: 1px solid #ffffff24;
}
.sn-site-footer .sn-footer-eyebrow {
  margin: 0 0 16px;
  color: #e8c884;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .18em;
  font-weight: 700;
}
.sn-site-footer .sn-footer-invitation h2 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.035em;
  color: #fff9ec;
}
.sn-site-footer .sn-footer-intro { margin: 18px 0 0; color: #c2d0c6; font-size: 18px; line-height: 1.6; }
.sn-site-footer .sn-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  padding: 17px 24px;
  border: 1px solid #f7efdd;
  border-radius: 10px;
  background: #f7efdd;
  color: #103c30;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  max-width: 100%;
  white-space: normal;
  line-height: 1.5;
  transition: background .18s ease, transform .18s ease;
}
.sn-site-footer .sn-footer-cta svg { width: 22px; height: 22px; flex-shrink: 0; }
.sn-site-footer .sn-footer-cta:hover { background: #e8c884; border-color: #e8c884; transform: translateY(-2px); }
.sn-site-footer .sn-footer-main {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1.15fr .85fr;
  gap: 42px;
  padding: 44px 0 42px;
}
.sn-site-footer .sn-footer-main > * { min-width: 0; }
.sn-site-footer .sn-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.85px;
  text-decoration: none;
  color: #fff9ec;
}
.sn-site-footer .sn-footer-brand-africa { font-weight: 400; color: #c0cfb7; }
.sn-site-footer .sn-footer-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  padding: 5px;
  border-radius: 11px;
  background: #fcfaf5;
}
.sn-site-footer .sn-footer-brand-mark svg { display: block; width: 35px; height: 32px; overflow: hidden; }
.sn-site-footer .sn-footer-description { margin: 18px 0 19px; max-width: 290px; color: #b7c9bd; font-size: 17px; line-height: 1.8; }
.sn-site-footer .sn-footer-brand-note { display: inline-flex; align-items: center; gap: 9px; color: #d6dfd0; font-size: 15px; line-height: 1.5; }
.sn-site-footer .sn-footer-brand-note > span { display: inline-block; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #e8c884; }
.sn-site-footer .sn-footer-column h3 { margin: 8px 0 19px; color: #ecdfbf; font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: .05px; }
.sn-site-footer .sn-footer-column ul { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; list-style: none; margin: 0; padding: 0; }
.sn-site-footer .sn-footer-column li { margin: 0; padding: 0; }
.sn-site-footer .sn-footer-column a,
.sn-site-footer .sn-footer-column button {
  display: inline-block;
  border: 0;
  padding: 0;
  background: none;
  color: #c0d0c5;
  text-decoration: none;
  text-align: left;
  font-family: inherit;
  font-size: var(--sn-footer-link-size);
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  transition: color .18s ease;
}
.sn-site-footer .sn-footer-column a:hover,
.sn-site-footer .sn-footer-column button:hover { color: #fff4d6; text-decoration: underline; text-underline-offset: 5px; }
.sn-site-footer .sn-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #ffffff24;
  padding: 22px 0 24px;
  color: #a8beb0;
  font-size: 15px;
  line-height: 1.5;
}
.sn-site-footer .sn-footer-bottom p { margin: 0; }
.sn-site-footer .sn-footer-closing-line { font-size: 17px; font-weight: 400; color: #c0cfb7; }
.sn-site-footer .sn-footer-back { display: inline-flex; align-items: center; gap: 10px; color: #dfebdf; text-decoration: none; }
.sn-site-footer .sn-footer-back svg { width: 18px; height: 18px; }
.sn-site-footer .sn-footer-back:hover { text-decoration: underline; text-underline-offset: 5px; }
.sn-site-footer :focus-visible { outline: 2px solid #efd094; outline-offset: 6px; border-radius: 3px; }
@media (max-width: 1100px) {
  .sn-site-footer .sn-footer-main { gap: 30px; grid-template-columns: 1.35fr 1fr 1.1fr .9fr; }
  .sn-site-footer .sn-footer-brand { font-size: 22px; gap: 9px; }
  .sn-site-footer .sn-footer-brand-mark { width: 37px; height: 37px; padding: 4px; }
  .sn-site-footer .sn-footer-brand-mark svg { width: 29px; height: 27px; }
}
@media (max-width: 900px) {
  .sn-site-footer .sn-footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
  .sn-site-footer .sn-footer-brand-column { grid-column: 1 / -1; }
  .sn-site-footer .sn-footer-brand { font-size: 28px; }
  .sn-site-footer .sn-footer-description { max-width: 440px; margin-top: 13px; margin-bottom: 11px; }
}
@media (max-width: 640px) {
  .sn-home .sn-site-footer { margin-top: 16px; --sn-footer-link-size: 15px; }
  .sn-site-footer .sn-footer-inner { padding: 0; }
  .sn-site-footer .sn-footer-invitation { align-items: flex-start; flex-direction: column; gap: 25px; padding: 38px 0 32px; }
  .sn-site-footer .sn-footer-invitation h2 { font-size: 34px; }
  .sn-site-footer .sn-footer-intro { font-size: 17px; max-width: 290px; }
  .sn-site-footer .sn-footer-cta { min-height: 52px; padding: 14px 20px; font-size: 17px; }
  .sn-site-footer .sn-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; row-gap: 29px; padding: 32px 0; }
  .sn-site-footer .sn-footer-column h3 { margin-top: 0; margin-bottom: 15px; font-size: 15px; }
  .sn-site-footer .sn-footer-column ul { gap: 11px; }
  .sn-site-footer .sn-footer-bottom { flex-wrap: wrap; row-gap: 14px; column-gap: 16px; padding: 20px 0 23px; }
  .sn-site-footer .sn-footer-bottom p { flex-basis: 100%; font-size: 14px; }
  .sn-site-footer .sn-footer-closing-line { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .sn-site-footer .sn-footer-cta,
  .sn-site-footer .sn-footer-column a,
  .sn-site-footer .sn-footer-column button { transition: none; }
}

/* Office contacts retain the footer's green, cream and gold palette. */
.sn-office-contacts { display: grid; gap: 18px; margin: 22px 0; }
.sn-office-contact h3 { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 8px; font-size: 16px; font-weight: 700; line-height: 1.6; color: #ecdfbf; }
.sn-office-contact h3 svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; }
.sn-office-contact address { margin: 0 0 8px 26px; font-style: normal; font-size: 16px; line-height: 1.7; color: #c0d0c5; white-space: pre-line; overflow-wrap: anywhere; }
.sn-site-footer .sn-office-whatsapp { display: inline-flex; align-items: center; gap: 9px; color: #e6f5e8; font-family: inherit; font-size: var(--sn-footer-link-size); font-weight: 600; text-decoration: none; line-height: 1.5; }
.sn-office-whatsapp svg { width: 17px; height: 17px; color: #9bd4af; }
.sn-office-whatsapp:hover { color: #fff4d6; text-decoration: underline; text-underline-offset: 4px; }
.sn-office-unavailable { margin: 0 0 0 26px; color: #c0d0c5; font-size: 15px; line-height: 1.6; }
.sn-enquiry-layer { box-sizing: border-box; position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 12px 16px 20px; border: 0; background: transparent; overflow: hidden; color: #173d31; }
.sn-enquiry-layer[open] { display: grid; grid-template-rows: 52px minmax(0, 1fr); gap: 8px; }
.sn-enquiry-layer::backdrop { background: #061e32a3; }
.sn-enquiry-toolbar { display: flex; align-items: center; justify-content: flex-end; width: min(1180px, 100%); margin-inline: auto; position: relative; z-index: 2; }
.sn-enquiry-toolbar .sn-language-options { right: 0; left: auto; max-width: calc(100vw - 32px); }
.sn-enquiry-toolbar .sn-language-status { max-width: calc(100vw - 32px); }
.sn-enquiry-dialog { box-sizing: border-box; align-self: center; width: min(620px, 100%); min-height: 0; max-height: 100%; margin-inline: auto; padding: 28px; border: 1px solid #d8e0d8; border-radius: 22px; background: #fcfaf5; color: #173d31; box-shadow: 0 28px 90px #061e3250; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.sn-enquiry-dialog::-webkit-scrollbar, .sn-enquiry-select-options::-webkit-scrollbar { display: none; }
.sn-enquiry-header { position: relative; padding-right: 38px; }
.sn-enquiry-heading { display: flex; align-items: center; gap: 12px; min-width: 0; margin-bottom: 12px; }
.sn-enquiry-chat { display: inline-flex; flex-shrink: 0; padding: 9px; border-radius: 12px; background: #e3f1e5; color: #23784b; }
.sn-enquiry-chat svg { width: 22px; height: 22px; }
.sn-enquiry-header h2 { flex: 1; min-width: 0; font: inherit; font-size: 18px; font-weight: 750; line-height: 1.4; margin: 0; letter-spacing: -.02em; }
.sn-enquiry-header p { font-size: 17px; line-height: 1.7; margin: 0; color: #576c60; }
.sn-enquiry-close { position: absolute; right: -6px; top: -6px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: #576c60; cursor: pointer; }
.sn-enquiry-close:hover { background: #e9efe7; }
.sn-enquiry-close svg { width: 20px; height: 20px; }
.sn-enquiry-header { margin-bottom: 22px; }
.sn-enquiry-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 16px; }
.sn-enquiry-wide { grid-column: 1 / -1; }
.sn-enquiry-field { min-width: 0; }
.sn-enquiry-field label, .sn-enquiry-categories legend { display: block; font-size: 16px; font-weight: 700; line-height: 1.6; margin-bottom: 7px; }
.sn-enquiry-field label span, .sn-enquiry-categories legend span { font-size: 14px; font-weight: 500; color: #66766b; margin-left: 5px; }
.sn-enquiry-field input:not([type="hidden"]), .sn-enquiry-field textarea, .sn-enquiry-select-trigger { box-sizing: border-box; display: block; width: 100%; min-width: 0; max-width: 100%; border: 1px solid #ccd8cc; border-radius: 10px; padding: 12px; font-family: inherit; font-size: 18px; line-height: 1.5; color: #173d31; background: #fff; }
.sn-enquiry-select { min-width: 0; }
.sn-enquiry-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; text-align: left; cursor: pointer; }
.sn-enquiry-select-trigger > span { min-width: 0; overflow-wrap: anywhere; }
.sn-enquiry-select-trigger:hover { border-color: #23784b; }
.sn-enquiry-select-trigger:disabled { opacity: .65; cursor: default; }
.sn-enquiry-placeholder { color: #66766b; }
.sn-enquiry-select-chevron { width: 18px; height: 18px; flex-shrink: 0; color: #23784b; transition: transform .15s ease; }
.sn-enquiry-select-expanded { transform: rotate(180deg); }
.sn-enquiry-select-options { display: grid; gap: 3px; box-sizing: border-box; width: 100%; max-height: min(240px, 40dvh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; margin-top: 7px; padding: 6px; border: 1px solid #ccd8cc; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px #173d3112; }
.sn-enquiry-select-options [role="option"] { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; min-height: 44px; padding: 10px; border: 0; border-radius: 7px; font: inherit; font-size: 17px; line-height: 1.6; text-align: left; color: #173d31; background: transparent; cursor: pointer; }
.sn-enquiry-select-options [data-option-label] { min-width: 0; overflow-wrap: anywhere; }
.sn-enquiry-select-options [role="option"]:hover, .sn-enquiry-select-options [role="option"]:focus-visible, .sn-enquiry-select-options [aria-selected="true"] { background: #eaf4e8; }
.sn-enquiry-select-options svg { width: 17px; height: 17px; flex-shrink: 0; color: #23784b; }
.sn-enquiry-option-check { display: inline-flex; flex-shrink: 0; visibility: hidden; }
.sn-enquiry-select-options [aria-selected="true"] .sn-enquiry-option-check { visibility: visible; }
.sn-enquiry-field textarea { resize: vertical; min-height: 112px; }
.sn-enquiry-field [aria-invalid="true"] { border-color: #b42318; }
.sn-enquiry-categories { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.sn-enquiry-categories legend { float: left; width: 100%; }
.sn-enquiry-categories label { display: flex; align-items: flex-start; gap: 9px; font-size: 16px; line-height: 1.6; cursor: pointer; }
.sn-enquiry-categories input { width: 17px; height: 17px; flex-shrink: 0; accent-color: #23784b; margin: 3px 0 0; }
.sn-enquiry-error { font-size: 15px; line-height: 1.6; color: #b42318; margin: 7px 0 0; }
.sn-enquiry-note { font-size: 15px; line-height: 1.7; color: #66766b; margin: 0 0 14px; }
.sn-enquiry-field .sn-enquiry-note { margin: 6px 0 0; }
.sn-enquiry-privacy { margin: 20px 0; }
.sn-enquiry-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #dce4d9; }
.sn-enquiry-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-size: 17px; font-weight: 700; line-height: 1.5; padding: 12px 18px; border-radius: 10px; cursor: pointer; }
.sn-enquiry-cancel { background: #fcfaf5; color: #173d31; border: 1px solid #ccd8cc; }
.sn-enquiry-continue { background: #23784b; color: #fff; border: 1px solid #23784b; }
.sn-enquiry-continue:hover { background: #195e3a; }
.sn-enquiry-continue:disabled { opacity: .65; cursor: wait; }
.sn-enquiry-actions svg, .sn-enquiry-handoff svg { width: 18px; height: 18px; flex-shrink: 0; }
.sn-enquiry-handoff { margin-top: 16px; padding: 16px; border-radius: 12px; border: 1px solid #b9d4bd; background: #eaf4e8; font-size: 16px; line-height: 1.7; }
.sn-enquiry-handoff p { margin: 0 0 8px; }
.sn-enquiry-handoff a { display: inline-flex; align-items: center; gap: 8px; color: #195e3a; font-weight: 700; }
.sn-enquiry-layer :focus-visible { outline: 3px solid #23784b; outline-offset: 3px; }
body:has(.sn-enquiry-layer[open]) { overflow: hidden; }
@media (max-width: 640px) {
  .sn-enquiry-layer { padding: 8px 10px 10px; }
  .sn-enquiry-layer[open] { grid-template-rows: 48px minmax(0, 1fr); }
  .sn-enquiry-dialog { padding: 20px 16px; border-radius: 18px; }
  .sn-enquiry-heading { gap: 9px; }
  .sn-enquiry-chat { padding: 7px; }
  .sn-enquiry-chat svg { width: 20px; height: 20px; }
  .sn-enquiry-header h2 { font-size: 17px; }
  .sn-enquiry-fields { grid-template-columns: minmax(0, 1fr); }
  .sn-enquiry-actions { flex-direction: column-reverse; }
  .sn-enquiry-actions button { width: 100%; }
  .sn-enquiry-categories { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .sn-enquiry-select-chevron { transition: none; }
}
