/*
 * Contact v2 (/contact-us). Same family as checkout v2 (ift-checkout-v2.css):
 * white cards on #f2f3f5, teal accent, numbered steps, quiet trust list.
 * Templates: templates/contact.tpl + modules/contactform/views/templates/widget/contactform.tpl
 */

body#contact {
  --ct-ink: #111827;
  --ct-text: #374151;
  --ct-muted: #6b7280;
  --ct-faint: #9ca3af;
  --ct-line: #e5e7eb;
  --ct-line-strong: #d1d5db;
  --ct-bg: #f2f3f5;
  --ct-soft: #f9fafb;
  --ct-accent: #0f766e;
  --ct-accent-hover: #115e59;
  --ct-accent-tint: #f1f8f7;
  --ct-accent-line: #cfe7e3;
  --ct-ring: 0 0 0 3px rgba(15, 118, 110, 0.15);
  --ct-radius: 10px;
}

body#contact #wrapper {
  background: var(--ct-bg);
}

body#contact #inner-wrapper.container {
  max-width: 1180px;
}

body#contact #wrapper .breadcrumb {
  background: transparent;
}

body#contact #main .page-content,
body#contact #main #content {
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

body#contact #main .page-footer {
  display: none;
}

body#contact .ets_solo_slide_widget {
  display: none !important;
}

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

.ift-ct {
  padding: 4px 0 40px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ct-text);
}

body#contact .ift-ct a:link,
body#contact .ift-ct a:visited {
  color: var(--ct-accent);
}

body#contact .ift-ct a:hover {
  color: var(--ct-accent-hover);
}

/* ---------- heading ---------- */

.ift-ct-head {
  margin: 0 0 18px;
}

.ift-ct .ift-ct-head__title {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ct-ink);
}

.ift-ct .ift-ct-head__title::before,
.ift-ct .ift-ct-head__title::after {
  display: none;
}

.ift-ct-head__sub {
  max-width: 640px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ct-muted);
}

/* ---------- layout ---------- */

.ift-ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

.ift-ct-main,
.ift-ct-side {
  min-width: 0;
}

.ift-ct-side {
  position: sticky;
  top: 72px;
}

.ift-ct-card {
  margin: 0 0 12px;
  border: 1px solid var(--ct-line);
  border-radius: var(--ct-radius);
  background: #fff;
}

.ift-ct-form {
  border-color: var(--ct-line-strong);
}

/* ---------- steps ---------- */

.ift-ct-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ift-ct-step + .ift-ct-step {
  border-top: 1px solid var(--ct-line);
}

.ift-ct .ift-ct-step__title {
  display: flex;
  align-items: center;
  gap: 12px;
  float: none;
  width: 100%;
  margin: 0;
  padding: 18px 24px 6px;
  border: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ct-ink);
}

.ift-ct-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ct-accent);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}

.ift-ct-step__body {
  padding: 10px 24px 24px 62px;
}

/* ---------- topic choice cards ---------- */

.ift-ct-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ift-ct-topic {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.ift-ct-topic input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ift-ct-topic__box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--ct-line-strong);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ift-ct-topic__box::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ct-faint);
  border-radius: 50%;
  background: #fff;
}

.ift-ct-topic__box strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ct-ink);
}

.ift-ct-topic__box span {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ct-muted);
}

.ift-ct-topic:hover .ift-ct-topic__box {
  border-color: #b8bec7;
}

.ift-ct-topic input:checked + .ift-ct-topic__box {
  border-color: var(--ct-accent);
  background: var(--ct-accent-tint);
  box-shadow: inset 0 0 0 1px var(--ct-accent);
}

.ift-ct-topic input:checked + .ift-ct-topic__box::before {
  border: 5px solid var(--ct-accent);
}

.ift-ct-topic input:focus-visible + .ift-ct-topic__box {
  box-shadow: inset 0 0 0 1px var(--ct-accent), var(--ct-ring);
}

/* ---------- fields ---------- */

.ift-ct-row--2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.ift-ct-field {
  margin: 0 0 14px;
}

.ift-ct-field > label {
  display: flex;
  justify-content: space-between;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ct-ink);
}

.ift-ct-field > label em,
.ift-ct-file em {
  font-size: 11.5px;
  font-style: normal;
  font-weight: 400;
  color: var(--ct-faint);
}

.ift-ct .ift-ct-field .form-control {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--ct-line-strong);
  border-radius: 8px;
  background-color: #fff;
  box-shadow: none;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ct-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ift-ct .ift-ct-field textarea.form-control {
  height: auto;
  min-height: 140px;
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}

.ift-ct .ift-ct-field .form-control::placeholder {
  color: var(--ct-faint);
  opacity: 1;
}

.ift-ct .ift-ct-field .form-control:hover {
  border-color: #b8bec7;
}

.ift-ct .ift-ct-field .form-control:focus {
  border-color: var(--ct-accent);
  outline: 0;
  box-shadow: var(--ct-ring);
}

/* attachment */
.ift-ct-file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 11px 14px;
  border: 1px dashed var(--ct-line-strong);
  border-radius: 8px;
  background: var(--ct-soft);
  font-size: 14px;
  color: var(--ct-text);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ift-ct-file svg {
  flex: none;
  color: var(--ct-muted);
}

.ift-ct-file__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ift-ct-file:hover {
  border-color: #9ca3af;
  background: #f4f5f7;
}

.ift-ct-file.has-file {
  border-style: solid;
  border-color: var(--ct-accent-line);
  background: var(--ct-accent-tint);
}

.ift-ct-file.has-file svg {
  color: var(--ct-accent);
}

.ift-ct-file input[type='file'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.ift-ct-file:focus-within {
  border-color: var(--ct-accent);
  box-shadow: var(--ct-ring);
}

.ift-ct-gdpr {
  margin: 0 0 14px;
  font-size: 13px;
}

/* submit */
.ift-ct-submit {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid #eef0f2;
}

.ift-ct-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.ift-ct .ift-ct-btn {
  display: block;
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--ct-accent);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.ift-ct .ift-ct-btn:hover {
  background: var(--ct-accent-hover);
}

.ift-ct .ift-ct-btn:focus-visible {
  outline: 0;
  box-shadow: var(--ct-ring);
}

.ift-ct .ift-ct-btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.ift-ct-submit__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--ct-muted);
}

/* alerts */
.ift-ct-alert {
  margin: 18px 24px 0;
  padding: 10px 14px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  font-size: 13.5px;
  color: #991b1b;
}

.ift-ct-alert ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ift-ct-sent {
  padding: 36px 28px 32px;
  text-align: center;
}

.ift-ct-sent__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--ct-accent-tint);
  color: var(--ct-accent);
}

.ift-ct .ift-ct-sent h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  color: var(--ct-ink);
}

.ift-ct-sent p {
  margin: 0 0 4px;
  color: var(--ct-text);
}

.ift-ct-sent .ift-ct-sent__more {
  margin: 8px 0 18px;
  color: var(--ct-muted);
}

/* ---------- outline pill buttons (like Google / PayPal in checkout) ---------- */

body#contact .ift-ct a.ift-ct-pill:link,
body#contact .ift-ct a.ift-ct-pill:visited,
.ift-ct .ift-ct-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid #9ca3af;
  border-radius: 999px;
  background: #fff;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ct-ink);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

body#contact .ift-ct .ift-ct-pill:hover {
  border-color: var(--ct-ink);
  background: var(--ct-soft);
  color: var(--ct-ink);
}

body#contact .ift-ct .ift-ct-pill--wa svg {
  color: #1fa855;
}

/* ---------- quick answers ---------- */

.ift-ct .ift-ct-quick__title {
  margin: 0;
  padding: 15px 20px 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ct-ink);
}

.ift-ct-quick__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 4px 8px 10px;
  list-style: none;
}

body#contact .ift-ct .ift-ct-quick__list a:link,
body#contact .ift-ct .ift-ct-quick__list a:visited {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ct-text);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

body#contact .ift-ct-quick__list a:hover {
  background: var(--ct-soft);
  color: var(--ct-text);
}

.ift-ct-quick__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ct-line);
  border-radius: 50%;
  color: var(--ct-accent);
}

.ift-ct-quick__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ct-muted);
}

.ift-ct-quick__text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ct-ink);
}

.ift-ct-quick__chev {
  flex: none;
  color: var(--ct-faint);
}

body#contact .ift-ct-quick__list a:hover .ift-ct-quick__chev {
  color: var(--ct-accent);
}

/* ---------- side: talk to us ---------- */

.ift-ct-talk {
  padding: 16px 20px 6px;
}

.ift-ct .ift-ct-talk__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ct-ink);
}

body#contact .ift-ct a.ift-ct-talk__phone:link,
body#contact .ift-ct a.ift-ct-talk__phone:visited,
.ift-ct .ift-ct-talk__phone {
  display: flex;
  flex-direction: column;
  color: var(--ct-ink);
  text-decoration: none;
}

.ift-ct-talk__phone small {
  font-size: 12.5px;
  color: var(--ct-muted);
}

.ift-ct-talk__phone strong {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ift-ct .ift-ct-talk__phone:hover strong {
  color: var(--ct-accent);
}

.ift-ct-talk__alt {
  display: flex;
  gap: 8px;
  margin: 2px 0 14px;
  font-size: 13px;
  color: var(--ct-faint);
}

body#contact .ift-ct .ift-ct-talk__alt a:link,
body#contact .ift-ct .ift-ct-talk__alt a:visited {
  color: var(--ct-muted);
  text-decoration: none;
}

body#contact .ift-ct .ift-ct-talk__alt a:hover {
  color: var(--ct-accent);
}

.ift-ct-talk__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef0f2;
}

.ift-ct-talk__rows {
  margin: 0;
  padding: 4px 0;
  list-style: none;
}

.ift-ct-talk__rows li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
}

.ift-ct-talk__rows li + li {
  border-top: 1px solid #eef0f2;
}

.ift-ct-talk__icon {
  display: flex;
  flex: none;
  margin-top: 2px;
  color: var(--ct-muted);
}

.ift-ct-talk__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 14px;
  color: var(--ct-ink);
  overflow-wrap: anywhere;
}

.ift-ct-talk__text small {
  font-size: 12px;
  color: var(--ct-muted);
}

body#contact .ift-ct .ift-ct-talk__text a {
  font-weight: 500;
}

/* note (same as checkout pay note) */
.ift-ct-note {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: start;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--ct-accent-line);
  border-left: 3px solid var(--ct-accent);
  border-radius: 8px;
  background: var(--ct-accent-tint);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ct-text);
}

.ift-ct-note svg {
  grid-row: span 2;
  margin-top: 1px;
  color: var(--ct-accent);
}

.ift-ct-note strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ct-ink);
}

/* trust list (same as checkout) */
.ift-ct-trust {
  margin: 12px 0 0;
  padding: 0 4px;
  list-style: none;
}

.ift-ct-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 4px 0;
}

.ift-ct-trust__icon {
  display: flex;
  flex: none;
  color: var(--ct-faint);
}

.ift-ct-trust__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ct-faint);
}

.ift-ct-trust__text strong {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ct-muted);
}

/* ---------- responsive ---------- */

@media (max-width: 991.98px) {
  .ift-ct-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ift-ct-side {
    position: static;
    order: -1;
  }

  .ift-ct-talk__rows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
  }

  .ift-ct-talk__rows li + li {
    border-top: 0;
  }

  .ift-ct-trust {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .ift-ct {
    padding-bottom: 24px;
  }

  .ift-ct .ift-ct-head__title {
    font-size: 24px;
  }

  .ift-ct-head__sub {
    font-size: 14px;
  }

  .ift-ct .ift-ct-step__title {
    padding: 16px 16px 4px;
    font-size: 17px;
  }

  .ift-ct-step__body {
    padding: 10px 16px 18px;
  }

  .ift-ct-topics,
  .ift-ct-row--2,
  .ift-ct-quick__list,
  .ift-ct-talk__rows {
    grid-template-columns: minmax(0, 1fr);
  }

  .ift-ct-talk__rows li + li {
    border-top: 1px solid #eef0f2;
  }

  .ift-ct-talk {
    padding: 14px 16px 4px;
  }

  .ift-ct-talk__phone strong {
    font-size: 24px;
  }

  .ift-ct .ift-ct-field .form-control {
    font-size: 16px;
  }
}
