/* -----------------------------
   Gotham font setup
   Replace file paths with your Gotham files.
   If you already load Gotham via another method, remove these @font-face rules.
-------------------------------- */
@font-face {
  font-family: "Gotham";
  src: url("assets/fonts/Gotham-Book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("assets/fonts/Gotham-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("assets/fonts/Gotham-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --container: 1180px;

  --text: #111;
  --muted: #6f6f6f;

  --white: #fff;
  --soft: #f1f1f1;
  --line: #e5e5e5;

  --primary: #0b5e9a;
  --primary-dark: #084b7b;

  --footer: #0f1722;

  --radius: 10px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.18);

  --m-hero-title-subtitle-gap: 22px;
  /* space between heading and body text */
  --m-hero-subtitle-card-gap: 22px;
  /* space between body text and form card */
  --m-hero-inner-padding-top: 34px;
  /* overall hero top padding on mobile */
  --m-hero-inner-padding-bottom: 44px;
  /* overall hero bottom padding on mobile */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    "Gotham",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--text);
  background: #fff;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* -----------------------------
   HERO
-------------------------------- */

.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: stretch;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  padding: 44px 0 56px;
  align-items: start;
}

.brand-logo {
  margin-top: 6px;
  width: 150px;
  height: auto;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.brand-logo:hover {
  opacity: 0.85;
}

.hero-left {
  padding-top: 18px;
}

.hero-title {
  margin: 26px 0 14px;
  color: #fff;
  font-size: clamp(34px, 3.4vw, 44px);
  line-height: 1.12;
  font-weight: 700;
  padding-top: 44px;
  letter-spacing: 0.2px;
}

.hero-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 400;
}

/* -----------------------------
   Quote Card
-------------------------------- */
.quote-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.card-title {
  margin: 2px 0 14px;
  padding-bottom: 24px;
  font-size: 18px;
  font-weight: 500;
  color: #141414;
}

.quote-form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-label {
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

input,
select {
  width: 100%;
  height: 44px;
  border-radius: 7px;
  border: 1px solid var(--line);
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  background: #fff;
  color: #222;
}

input::placeholder {
  color: #9a9a9a;
}

input:focus,
select:focus {
  border-color: rgba(11, 94, 154, 0.5);
  box-shadow: 0 0 0 3px rgba(11, 94, 154, 0.12);
}

.select-wrap {
  position: relative;
}

select {
  appearance: none;
  padding-right: 44px;
  background-image: none;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #9a9a9a;
  border-bottom: 2px solid #9a9a9a;
  transform: translateY(-55%) rotate(45deg);
  pointer-events: none;
}

.primary-btn {
  margin-top: 10px;
  height: 48px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
}

.primary-btn:hover {
  background: var(--primary-dark);
}

.form-note {
  margin: 0px 0px 0;
  font-size: 13px;
  color: var(--muted);
  min-height: 10px;
}

.custom-select {
  position: relative;
}

.select-trigger {
  width: 100%;
  height: 44px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
  font-size: 14px;
  color: #9a9a9a;
  cursor: pointer;
}

.select-trigger span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select-trigger svg {
  width: 14px;
  height: 14px;
  stroke: #9a9a9a;
  fill: none;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.custom-select.open .select-trigger svg {
  transform: rotate(180deg);
}

.select-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
  padding: 6px 0;
  list-style: none;
  margin: 0;
  z-index: 20;
  display: none;
}

.custom-select.open .select-options {
  display: block;
}

.select-options li {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  color: #333;
}

.select-options li:hover {
  background: #f4f4f4;
}

.select-options li.is-selected {
  background: #0067ae;
  color: #fff;
}

/* -----------------------------
   WHY section
-------------------------------- */

.why {
  background: var(--soft);
  padding: 42px 0 36px;
  min-height: clamp(320px, 40vh, 680px);

  display: flex;
  align-items: center;
}

.why-inner {
  text-align: center;
  --title-body-gap: 40px;
  /* adjust this value anytime */
}

.why-title {
  margin: 0 0 var(--title-body-gap);
  font-size: 28px;
  font-weight: 500;
  padding-bottom: 8px;
  letter-spacing: 0.2px;
  color: #141414;
}

.why-body {
  margin: 0 auto;
  max-width: 750px;
  color: #7b7b7b;
  padding: 0 18px;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 400;
}

/* -----------------------------
   Tabs row
-------------------------------- */
.tabs {
  background: #fff;
  border-top: 1px solid #dcdcdc;
  border-bottom: 1px solid #dcdcdc;
}

.tabs-row {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 4vw, 64px);
  padding: 18px 0;
  flex-wrap: wrap;
}

.tab {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #141414;
  padding: 8px 6px;
  position: relative;
}

/* -----------------------------
   Banner section
-------------------------------- */
.banner {
  position: relative;
  min-height: clamp(320px, 55vh, 680px);
  display: flex;
  align-items: center;
}

.banner-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/banner.jpg");
  background-size: cover;
  background-position: center;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
}

.banner-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 0;
}

.banner-text {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  font-weight: 500;
}

.ghost-btn {
  height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}

.ghost-btn:hover {
  background: #fff;
}

/* -----------------------------
   Footer
-------------------------------- */
.footer {
  background: var(--footer);
  padding: 18px 0;
}

.footer-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.footer-socials {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.9;
  text-decoration: none;
}

.footer-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-icon:hover {
  opacity: 1;
}

.footer-copy {
  margin: 0;
  color: #fff;
  opacity: 0.9;
  font-size: 14px;
  text-align: center;
}

.footer-spacer {
  justify-self: end;
}

@media (max-width: 520px) {
  .footer-bar {
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: center;
  }

  .footer-spacer {
    display: none;
  }
}

/* -----------------------------
   Responsiveness
-------------------------------- */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 36px 0 44px;
  }

  .quote-card {
    justify-self: start;
    max-width: 560px;
  }

  .hero-left {
    padding-top: 6px;
  }
}

@media (max-width: 520px) {

  /* Use variables for mobile spacing */
  .hero-inner {
    gap: var(--m-hero-subtitle-card-gap);
    /* controls space between left block and card */
    padding: var(--m-hero-inner-padding-top) 0 var(--m-hero-inner-padding-bottom);
  }

  /* Title -> subtitle spacing */
  .hero-title {
    margin: 18px 0 var(--m-hero-title-subtitle-gap);
  }

  /* Subtitle -> card spacing (extra breathing room) */
  .hero-subtitle {
    margin: 0 0 var(--m-hero-subtitle-card-gap);
  }

  /* Optional: if you want the card a tiny bit lower as well */
  .quote-card {
    margin-top: 0;
    /* change to 6px, 10px, etc if you want more */
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 28px);
  }

  .hero {
    min-height: 560px;
  }

  .quote-card {
    padding: 18px 16px 14px;
    border-radius: 12px;
  }

  .hero-title {
    margin-top: 18px;
  }

  .tabs-row {
    gap: 18px;
  }
}

/* -----------------------------
   Success Card (replaces form)
-------------------------------- */
.success-card {
  display: none;
  text-align: center;
  padding: 60px 20px;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.success-card.show {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #0b5e9a 0%, #084b7b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  animation: iconPop 0.5s ease 0.2s backwards;
}

@keyframes iconPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-icon svg {
  width: 40px;
  height: 40px;
}

.success-title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 500;
  color: #3a3a3a;
  letter-spacing: 0.3px;
}

.success-message {
  margin: 0;
  font-size: 16px;
  color: #7a7a7a;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .success-card {
    padding: 50px 16px;
  }

  .success-icon {
    width: 70px;
    height: 70px;
  }

  .success-icon svg {
    width: 35px;
    height: 35px;
  }

  .success-title {
    font-size: 28px;
  }

  .success-message {
    font-size: 15px;
  }
}