:root {
  --text-dark: #0d1117;
  --text-soft: #4d5b58;
  --panel-line: rgba(19, 37, 31, 0.08);
  --panel-soft: rgba(223, 228, 225, 0.85);
  --page-shell: 980px;
  --green: #16ab6d;
  --footer-a: #1b6e4b;
  --footer-b: #59c591;
  --type-micro: 12px;
  --type-support: 14px;
  --type-body: 15px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'InterVariable', 'Inter', 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: #ffffff;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
button,
label {
  font-family: 'InterVariable', 'Inter', sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-family: 'InterVariable', 'Inter', sans-serif;
  font-weight: 600;
}

.btn-light {
  background: #ffffff;
  color: #0b3d2e;
  border: 1px solid rgba(11, 61, 46, 0.1);
}

.contact-page {
  min-height: 100vh;
  background: #ffffff;
}

.contact-hero {
  position: relative;
  max-width: var(--page-shell);
  margin: 74px auto 0;
  padding: 0 20px;
}

.contact-hero::before {
  content: '';
  position: absolute;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  top: -160px;
  height: clamp(420px, 52vw, 520px);
  background:
    linear-gradient(180deg, rgba(120, 214, 174, 0.92) 0%, rgba(189, 238, 215, 0.7) 34%, rgba(247, 255, 251, 0.42) 68%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, #6ed0a8 0%, #cbeedf 28%, rgba(255, 255, 255, 0) 78%);
  background-size:
    100% 100%,
    100% 100%;
  background-position:
    center top,
    center top;
  background-repeat: no-repeat, no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 95%);
          mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 95%);
  z-index: -1;
  pointer-events: none;
}

/* Column-line layer — fades out BEFORE the main title. */
.contact-hero::after {
  content: '';
  position: absolute;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  top: -160px;
  height: clamp(420px, 52vw, 520px);
  background: linear-gradient(90deg, rgba(22, 171, 109, 0.18) 1px, transparent 1px);
  background-size: 72px 100%;
  background-repeat: repeat-x;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 160px, transparent 260px);
          mask-image: linear-gradient(180deg, #000 0%, #000 160px, transparent 260px);
  z-index: -1;
  pointer-events: none;
}

.contact-hero-copy {
  max-width: 742px;
  margin: 0 auto;
  text-align: center;
}

.contact-hero h1 {
  max-width: 520px;
  margin: 18px auto 12px;
  font-size: clamp(2.2rem, 3.1vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.contact-hero h1 span,
.contact-hero h1 em {
  display: block;
}

.contact-hero h1 em {
  margin-top: 2px;
  color: var(--green);
  font-style: normal;
}

.contact-hero p {
  max-width: 640px;
  margin: 34px auto 0;
  font-size: 18px;
  line-height: 1.46;
  letter-spacing: -0.02em;
  color: #25312f;
}

.contact-panel {
  max-width: var(--page-shell);
  margin: 66px auto 0;
  padding: 0 20px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(300px, 0.96fr);
  gap: 22px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(231, 236, 234, 0.88), rgba(242, 244, 243, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition:
    transform var(--motion-duration-md) var(--motion-ease-standard),
    box-shadow var(--motion-duration-md) ease;
}

.contact-card:hover,
.office-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--motion-shadow-lift);
}

.contact-form,
.contact-info {
  border-radius: 10px;
}

.contact-form {
  padding: 13px 16px 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #262f2d;
}

.field input,
.field textarea,
.phone-field {
  width: 100%;
  border-radius: 9px;
  border: 1px solid #c8d0cc;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(24, 38, 32, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input,
.phone-field input,
.field textarea {
  color: #202626;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.field input::placeholder,
.phone-field input::placeholder,
.field textarea::placeholder {
  color: #555f5d;
}

.field input {
  height: 38px;
  padding: 0 12px;
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.phone-field input:-webkit-autofill,
.phone-field input:-webkit-autofill:hover,
.phone-field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #202626 !important;
  transition: background-color 5000s ease-in-out 0s;
}

.phone-field {
  min-height: 38px;
  display: flex;
  align-items: center;
}

.field input:focus,
.field textarea:focus,
.phone-field:focus-within {
  border-color: rgba(22, 171, 109, 0.78);
  box-shadow: 0 0 0 3px rgba(22, 171, 109, 0.08);
  outline: none;
}

.phone-code-wrapper {
  position: relative;
}

.phone-code-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  color: #314442;
  white-space: nowrap;
  border-right: 1px solid rgba(26, 43, 36, 0.12);
}

.phone-code-flag {
  font-size: 16px;
  line-height: 1;
}

.phone-code-value {
  font-size: 13px;
  font-weight: 500;
}

.phone-code-arrow {
  font-size: 10px;
  opacity: 0.5;
}

.phone-code-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: -1px;
  width: 260px;
  max-height: 240px;
  background: #fff;
  border: 1px solid #d0d7d3;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 100;
  flex-direction: column;
  overflow: hidden;
  display: none;
}

.phone-code-dropdown.open {
  display: flex;
}

.phone-code-search {
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #e8ece9;
  font-size: 13px;
  outline: none;
  width: 100%;
}

.phone-code-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  overflow-y: auto;
  flex: 1;
}

.phone-code-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  color: #2a3a34;
}

.phone-code-list li:hover {
  background: #f0f4f2;
}

.phone-code-list li .code-flag {
  font-size: 16px;
}

.phone-code-list li .code-dial {
  color: #6b7d76;
  margin-left: auto;
  font-size: 12px;
}

.phone-field input {
  flex: 1;
  border: 0;
  outline: none;
  height: 36px;
  padding: 0 12px 0 10px;
  background: transparent;
}

.field-wide {
  margin-top: 18px;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.45;
}

.btn-submit {
  width: 100%;
  margin-top: 20px;
  min-height: 43px;
  border: 0;
  border-radius: 9px;
  background: #084a2d;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.btn-submit:disabled {
  background: #a3b5ad;
  cursor: not-allowed;
  opacity: 0.7;
}

.field-error input,
.field-error textarea,
.field-error .phone-field {
  border-color: #d94040;
}

.field-error-msg {
  color: #d94040;
  font-size: 11px;
  margin-top: 3px;
  display: none;
}

.field-error .field-error-msg {
  display: block;
}

.contact-info {
  padding: 30px 30px 24px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(212, 218, 214, 0.65);
}

.contact-info h2 {
  margin: 0;
  max-width: 260px;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.info-block {
  margin-top: 36px;
}

.info-block h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.info-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.info-block a {
  display: inline;
  font-size: 15px;
  line-height: 1.48;
  color: #4f5957;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.info-block a:hover {
  color: #16ab6d;
  border-bottom-color: #16ab6d;
}

.copy-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(79, 89, 87, 0.2);
  border-radius: 6px;
  background: transparent;
  color: #8a9694;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.copy-btn:hover {
  color: #16ab6d;
  border-color: rgba(22, 171, 109, 0.35);
  background: rgba(22, 171, 109, 0.06);
}

.copy-btn.copied {
  color: #16ab6d;
  border-color: #16ab6d;
  background: rgba(22, 171, 109, 0.08);
}

@media (max-width: 900px) {
  .copy-btn {
    display: none;
  }
}

.locations {
  max-width: var(--page-shell);
  margin: 72px auto 0;
  padding: 0 20px 63px;
}

.locations-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 315px);
  align-items: start;
  gap: 24px;
}

.locations-title h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 600;
}

.locations-title h2 span,
.locations-title h2 em {
  display: block;
}

.locations-title h2 em {
  margin-top: 5px;
  color: var(--green);
  font-style: normal;
}

.locations-header p {
  margin: 11px 0 0;
  max-width: 316px;
  justify-self: end;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: #495755;
}

.office-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.office-card {
  position: relative;
  min-height: 286px;
  overflow: hidden;
  border-radius: 14px;
  background: #d0d0d0;
  transition:
    transform var(--motion-duration-md) var(--motion-ease-standard),
    box-shadow var(--motion-duration-md) ease;
}

.office-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.office-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 9, 9, 0) 43%, rgba(9, 9, 9, 0.74) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 62%, rgba(0, 0, 0, 0.16) 100%);
}

.office-overlay {
  position: absolute;
  right: 20px;
  bottom: 17px;
  left: 20px;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #ffffff;
}

.office-flag {
  flex: 0 0 auto;
  width: 24px;
  height: 17px;
  margin-top: 3px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.office-flag-india {
  background:
    radial-gradient(circle at 50% 50%, #2e5daa 0 12%, transparent 13%),
    linear-gradient(180deg, #f7941d 0 33.3%, #ffffff 33.3% 66.6%, #1e8e49 66.6% 100%);
}

.office-flag-uk {
  background:
    linear-gradient(90deg, transparent 41%, #ffffff 41% 59%, transparent 59%),
    linear-gradient(transparent 38%, #ffffff 38% 62%, transparent 62%),
    linear-gradient(90deg, transparent 45%, #d62130 45% 55%, transparent 55%),
    linear-gradient(transparent 42%, #d62130 42% 58%, transparent 58%),
    linear-gradient(140deg, transparent 43%, #ffffff 43% 48%, transparent 48% 52%, #ffffff 52% 57%, transparent 57%),
    linear-gradient(40deg, transparent 43%, #ffffff 43% 48%, transparent 48% 52%, #ffffff 52% 57%, transparent 57%),
    #0d4ea6;
}

.office-overlay h3 {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.office-overlay p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
}

[data-animate] {
  opacity: var(--motion-opacity-start, 0);
  transform: translate3d(0, var(--motion-y-start, 24px), 0);
  transition:
    opacity var(--motion-duration, var(--motion-duration-md)) var(--motion-ease-standard) var(--motion-delay, 0ms),
    transform var(--motion-duration, var(--motion-duration-md)) var(--motion-ease-standard) var(--motion-delay, 0ms);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

[data-animate].in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.contact-hero-copy > * {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity var(--motion-duration-md) var(--motion-ease-standard),
    transform var(--motion-duration-md) var(--motion-ease-standard);
}

.contact-hero-copy.in-view > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.contact-hero-copy.in-view > *:nth-child(1) {
  transition-delay: 40ms;
}

.contact-hero-copy.in-view > *:nth-child(2) {
  transition-delay: 110ms;
}

@media (max-width: 980px) {
  .contact-card,
  .locations-header {
    grid-template-columns: 1fr;
  }

  .locations-header p {
    justify-self: start;
    max-width: 100%;
    margin-top: 0;
  }

  .office-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .contact-hero {
    margin-top: 48px;
  }

  .contact-hero p {
    font-size: 16px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-page {
    background-size:
      48px 48px,
      48px 48px,
      100% 100%,
      100% 100%;
  }

  .contact-hero,
  .contact-panel,
  .locations {
    padding-left: 14px;
    padding-right: 14px;
  }

  .contact-hero h1 {
    max-width: 290px;
    margin: 16px auto 12px;
    font-size: clamp(2rem, 10vw, 2.45rem);
    line-height: 1.04;
  }

  .contact-card {
    padding: 12px;
  }

  .contact-form,
  .contact-info {
    padding-left: 14px;
    padding-right: 14px;
  }

  .contact-info h2 {
    max-width: none;
  }

  .office-card {
    min-height: 240px;
  }

  .phone-code-dropdown {
    width: calc(100vw - 60px);
    max-width: 280px;
    left: -12px;
  }

  .phone-code-btn {
    padding: 0 6px 0 8px;
    gap: 3px;
  }

  .phone-code-value {
    font-size: 12px;
  }
}
