/* ==========================================================================
   VARIABLES
   ========================================================================== */
:root {
  --color-navy: #0c2138;
  --color-navy-dark: #081826;
  --color-blue: #1e93e8;
  --color-blue-light: #3aa9f5;
  --color-text-dark: #000;
  --color-text-muted: #5b6b7d;
  --color-border-blue: #2ea3f2;
  --color-input-bg: #eef1f4;
  --color-input-border: #aeaeae;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card:
    rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
  --font-heading: "Poppins", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
}

.hero-banner {
  background-image: url(https://www.fastinfo.com/assets/images/ai/contact-us-banner.webp);
  background-repeat: no-repeat;
  background-size: cover;
  padding: 170px 0 85px 0;
}

.hero-content {
  z-index: 2;
}

.hero-subtitle {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.hero-title {
  color: #ffffff;
  font-size: 2.85rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  position: relative;
}
.hero-title::after {
  width: 85px;
  height: 2px;
  position: absolute;
  display: block;
  content: "";
  bottom: 0px;
  left: 50%;
  background-color: #fff;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
  margin-top: 18px;
  transform: translate(-50%);
  top: 70%;
}

.underline-word {
  position: relative;
  display: inline-block;
}

.hero-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  background-color: var(--color-blue);
  border-radius: 2px;
  display: block;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  padding: 70px 0 60px;
}

.section-heading {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-dark);
  margin-bottom: 18px;
}

.section-text {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}

/* ---- Office Cards ---- */
.office-card {
  border-left-color: #005fff;
  border-left-width: 4px;
  border-left-style: solid;
  border-radius: 20px;
  padding: 30px 28px;
  margin-bottom: 25px;
  box-shadow: 0px 2px 9px 0px #00000040;
}

.office-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 20px;
}

.office-details {
  list-style: none;
  margin: 0;
  padding: 0;
}

.office-details li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.office-details li:last-child {
  margin-bottom: 0;
}

.office-details i {
  color: var(--color-text-dark);
  font-size: 1rem;
  margin-top: 3px;
  width: 16px;
  flex-shrink: 0;
}
.office-details span {
  font-size: 17px;
  line-height: 27px;
  color: var(--color-text-dark);
}

/* ==========================================================================
   FORM CARD
   ========================================================================== */
.form-card {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0px 2px 9px 0px #00000040;
  padding: 25px 25px;
  height: auto;
}

.form-heading {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-dark);
  position: relative;
  padding-bottom: 10px;
}

.form-heading span {
  position: relative;
  display: inline-block;
}

.form-heading span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 3px;
  background-color: var(--color-blue);
  border-radius: 2px;
}

.custom-input {
  /* background-color: var(--color-input-bg); */
  border: 1px solid var(--color-input-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--color-text-dark);
  box-shadow: none;
}

.custom-input::placeholder {
  color: #333333;
  font-size: 17px;
}

.custom-input:focus {
  background-color: #ffffff;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(30, 147, 232, 0.12);
}

.custom-textarea {
  resize: none;
  min-height: 130px;
}

select.custom-input {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%235b6b7d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

select.custom-input:invalid,
select.custom-input option[value=""] {
  color: #8b96a3;
}

/* ---- Captcha ---- */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-box {
  position: relative;
  flex: 0 0 130px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.06) 0 2px,
      transparent 2px 8px
    ),
    linear-gradient(135deg, #14324f, #1e93e8 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.captcha-text {
  display: inline-flex;
  gap: 4px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffffff;
  letter-spacing: 1px;
  font-family: Georgia, "Times New Roman", serif;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.captcha-text span {
  display: inline-block;
}

.captcha-refresh {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-navy);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.captcha-input {
  flex: 1;
}

/* ---- Terms Checkbox ---- */
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-left: 0;
}

.terms-check .form-check-input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--color-blue);
  flex-shrink: 0;
}

.terms-check .form-check-input:checked {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
}

.terms-check .form-check-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-left: 0;
}

/* ---- Submit Button ---- */
.btn-submit {
  background: #005fff;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  margin-top: 6px;
  transition:
    opacity 0.2s ease,
    transform 0.15s ease;
}

.btn-submit:hover {
  opacity: 0.92;
  color: #ffffff;
}

.btn-submit:active {
  transform: scale(0.99);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .section-heading {
    font-size: 1.85rem;
  }

  .form-card {
    padding: 36px 28px;
  }

  .clients-card {
    justify-content: center;
    text-align: center;
  }

  .clients-logos {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .hero-banner {
    padding: 110px 0px 50px 0;
    background-image: url(https://www.fastinfo.com/assets/images/ai/contact-us-banner-mobile.webp);
    background-size: cover;
    background-position: center;
  }

  .form-check .form-check-input {
    margin-left: 0;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .section-text {
    font-size: 0.92rem;
    max-width: 100%;
  }

  .office-card {
    padding: 20px 20px;
    max-width: 100%;
  }

  .office-title {
    font-size: 1.15rem;
  }

  .form-card {
    padding: 28px 20px;
    box-shadow: var(--shadow-card);
  }

  .form-heading {
    font-size: 1.35rem;
  }

  .captcha-row {
    flex-wrap: nowrap;
  }

  .captcha-box {
    flex: 0 0 110px;
    height: 48px;
  }

  .clients-card {
    padding: 22px 20px;
    gap: 16px;
  }

  .clients-logos {
    gap: 24px;
  }

  .logo-item {
    font-size: 0.95rem;
  }
}

@media (max-width: 575.98px) {
  .contact-section {
    padding: 40px 0 40px;
  }

  .clients-section {
    padding-bottom: 50px;
  }
}
