/* =============================================
   CONTACT PAGE
   ============================================= */

/* ── Page shell ───────────────────────────── */
.page--contact {
  background:
    radial-gradient(circle at 100% 85%, rgba(44,179,46,0.12), transparent 35%),
    radial-gradient(circle at 0%   80%, rgba(44,179,46,0.08), transparent 30%),
    #06100C;
  color: #A7AEA9;
  min-height: 100vh;
}

/* Ambient glow blobs */
.contact-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.contact-glow--tr {
  width: 700px;
  height: 700px;
  top: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(44,179,46,0.09) 0%, transparent 65%);
}

.contact-glow--bl {
  width: 600px;
  height: 600px;
  bottom: -150px;
  left: -150px;
  background: radial-gradient(circle, rgba(44,179,46,0.07) 0%, transparent 65%);
}

/* ── Outer wrapper ────────────────────────── */
.contact-wrap {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 80px) 40px 100px;
  display: grid;
  /* Left col: intro + details + map stacked | Right col: form spans all rows */
  grid-template-columns: 0.9fr 1.15fr;
  grid-template-rows: auto auto auto;
  column-gap: 90px;
  row-gap: 48px;
  align-items: start;
}

.contact-intro  { grid-column: 1; grid-row: 1; }
.contact-right  { grid-column: 2; grid-row: 1 / 4; }
.contact-details { grid-column: 1; grid-row: 2; }
.contact-map-wrap { grid-column: 1; grid-row: 3; }

/* ── Entry animations ─────────────────────── */
.ct-anim-left,
.ct-anim-right {
  opacity: 0;
  transform: translateY(20px);
  animation: ct-fade-up 0.6s ease forwards;
}

.ct-anim-right {
  animation-delay: 0.15s;
}

@keyframes ct-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   LEFT COLUMN
   ═══════════════════════════════════════════ */

/* Eyebrow */
.ct-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2CB32E;
  margin-bottom: 28px;
}

.ct-eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2CB32E;
  box-shadow: 0 0 8px rgba(44,179,46,0.7);
  flex-shrink: 0;
}

/* Main heading */
.ct-heading {
  font-size: clamp(60px, 7vw, 96px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #F4F4F1;
  margin-bottom: 22px;
}

/* Tagline */
.ct-tagline {
  font-size: 18px;
  color: #D0D4D1;
  line-height: 1.55;
  margin-bottom: 18px;
}

/* Green accent line */
.ct-accent-line {
  width: 54px;
  height: 2px;
  background: #2CB32E;
  border-radius: 2px;
  margin-bottom: 28px;
}

/* Intro paragraph */
.ct-intro {
  font-size: 17px;
  line-height: 1.65;
  color: #8E9691;
  max-width: 520px;
  margin-bottom: 44px;
}

/* ── Contact detail cards ─────────────────── */
.ct-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.ct-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 10px 16px 10px 10px;
  background: rgba(255,255,255,0.012);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 11px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.ct-item:hover {
  transform: translateX(4px);
  border-color: rgba(44,179,46,0.45);
  background: rgba(44,179,46,0.025);
  box-shadow: 0 10px 30px rgba(44,179,46,0.05);
}

.ct-item:hover .ct-item__arrow {
  transform: translateX(3px);
}

.ct-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  background: rgba(44,179,46,0.08);
  color: #31C438;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ct-item__icon svg {
  width: 20px;
  height: 20px;
}

.ct-item__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ct-item__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #777F7A;
}

.ct-item__value {
  font-size: 14px;
  font-weight: 500;
  color: #F4F4F1;
  line-height: 1.45;
}

.ct-item__arrow {
  color: #777F7A;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.ct-item__arrow svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* ── Social links ─────────────────────────── */
.ct-social {
  margin-bottom: 36px;
}

.ct-social__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #777F7A;
  margin-bottom: 14px;
}

.ct-social__row {
  display: flex;
  gap: 10px;
}

.ct-social__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: rgba(244,244,241,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s, background 0.25s;
  text-decoration: none;
}

.ct-social__btn svg {
  width: 17px;
  height: 17px;
}

.ct-social__btn:hover {
  border-color: #2CB32E;
  color: #2CB32E;
  background: rgba(44,179,46,0.06);
  box-shadow: 0 0 18px rgba(44,179,46,0.08);
}

/* ── Map ──────────────────────────────────── */
.ct-map {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}

.ct-map .embed-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #07100D;
  z-index: 3;
  transition: opacity 0.4s ease;
}

.ct-map .embed-loader.loaded {
  opacity: 0;
  pointer-events: none;
}

.embed-loader__spinner {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(44,179,46,0.15);
  border-top-color: #2CB32E;
  border-radius: 50%;
  animation: embedSpin 0.8s linear infinite;
}

@keyframes embedSpin {
  to { transform: rotate(360deg); }
}

.embed-loader__text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(241,239,233,0.35);
}

.ct-map iframe {
  width: 100%;
  height: 220px;
  border: none;
  display: block;
  filter: grayscale(0.4) brightness(0.7);
}

.ct-map__overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 160px;
  background: rgba(6,16,12,0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 18px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.ct-map__city {
  font-size: 15px;
  font-weight: 700;
  color: #2CB32E;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.ct-map__country {
  font-size: 12px;
  color: #8E9691;
  margin-bottom: 16px;
}

.ct-map__link {
  font-size: 12px;
  font-weight: 600;
  color: #2CB32E;
  text-decoration: none;
  transition: opacity 0.2s;
}

.ct-map__link:hover {
  opacity: 0.75;
}

/* ═══════════════════════════════════════════
   RIGHT COLUMN — FORM PANEL
   ═══════════════════════════════════════════ */

.ct-form-panel {
  padding: 42px;
  border-radius: 16px;
  border: 1px solid rgba(44,179,46,0.28);
  background: linear-gradient(145deg, rgba(255,255,255,0.018), rgba(44,179,46,0.012));
  box-shadow: 0 0 60px rgba(44,179,46,0.04);
  scroll-margin-top: calc(var(--nav-height, 68px) + 24px);
}

/* Form header */
.ct-form-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.ct-form-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(44,179,46,0.32);
  background: rgba(44,179,46,0.06);
  color: #31C438;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ct-form-icon svg {
  width: 26px;
  height: 26px;
}

.ct-form-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #F4F4F1;
  line-height: 1.2;
  margin-bottom: 4px;
}

.ct-form-sub {
  font-size: 14px;
  color: #777F7A;
}

.ct-form-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 28px;
}

/* Field rows */
.ct-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.ct-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0;
}

.ct-field-group--full {
  grid-column: 1 / -1;
  margin-bottom: 18px;
}

/* Labels */
.ct-label {
  font-size: 13px;
  font-weight: 600;
  color: #E5E7E5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ct-required {
  color: #2CB32E;
  margin-left: 2px;
}

.ct-optional {
  color: #6F7772;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

/* Inputs */
.ct-input {
  width: 100%;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 8px;
  color: #F4F4F1;
  padding: 15px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.ct-input::placeholder {
  color: #6E7671;
}

.ct-input:focus {
  border-color: rgba(44,179,46,0.72);
  box-shadow: 0 0 0 3px rgba(44,179,46,0.08);
  background: rgba(0,0,0,0.30);
}

.ct-input.is-invalid {
  border-color: rgba(229,62,62,0.75);
  background: rgba(229,62,62,0.04);
  animation: ct-shake 0.35s cubic-bezier(.36,.07,.19,.97) both;
}

.ct-input.is-invalid:focus {
  border-color: rgba(229,62,62,0.85);
  box-shadow: 0 0 0 3px rgba(229,62,62,0.12);
}

.ct-input.is-valid {
  border-color: rgba(44,179,46,0.5);
}

@keyframes ct-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-5px); }
  40%       { transform: translateX(5px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

/* Select */
.ct-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F4F4F1' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 44px;
  cursor: pointer;
}

.ct-select option {
  background: #09130F;
  color: #F4F4F1;
}

/* Textarea */
.ct-textarea {
  min-height: 150px;
  resize: vertical;
  margin-bottom: 0;
  padding-bottom: 12px;
}

.ct-char-count {
  font-size: 12px;
  color: #777F7A;
  text-align: right;
  display: block;
  margin-top: 4px;
  margin-bottom: 20px;
  padding-right: 2px;
}

/* Field error */
.ct-field-error {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #e05454;
  font-weight: 500;
  margin-top: 5px;
  line-height: 1.4;
}

.ct-field-error::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e05454' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6.5'/%3E%3Cline x1='8' y1='5' x2='8' y2='8.5'/%3E%3Ccircle cx='8' cy='11' r='0.75' fill='%23e05454' stroke='none'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Submit button */
.ct-submit-btn {
  width: 100%;
  height: 58px;
  border: none;
  border-radius: 8px;
  background: #2CB32E;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.ct-submit-btn__arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.ct-submit-btn:hover {
  background: #31C438;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(44,179,46,0.18);
}

.ct-submit-btn:hover .ct-submit-btn__arrow {
  transform: translateX(3px);
}

.ct-submit-btn:disabled,
.ct-submit-btn.is-loading {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.ct-submit-btn.is-loading .ct-submit-btn__text::after {
  content: '…';
  animation: ct-ellipsis 1.2s steps(4, end) infinite;
}

@keyframes ct-ellipsis {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

.ct-submit-btn:active:not(:disabled):not(.is-loading) {
  transform: scale(0.98);
}

/* Privacy note */
.ct-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #7F8982;
  margin-top: 16px;
  text-align: center;
}

.ct-privacy svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Success state ────────────────────────── */
.ct-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.ct-success.visible {
  display: block;
}

.ct-success__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(44,179,46,0.1);
  border: 1px solid rgba(44,179,46,0.3);
  color: #2CB32E;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.ct-success__icon svg {
  width: 28px;
  height: 28px;
}

.ct-success__heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #F4F4F1;
  margin-bottom: 10px;
}

.ct-success__sub {
  font-size: 15px;
  color: #8E9691;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1100px) {
  .contact-wrap {
    gap: 60px;
  }

  .ct-form-panel {
    padding: 32px;
  }
}

@media (max-width: 860px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 40px;
    padding-top: calc(var(--nav-height) + 48px);
    padding-inline: 24px;
  }

  /* Mobile order: ① intro ② form ③ details ④ map */
  .contact-intro    { grid-column: 1; grid-row: auto; order: 1; }
  .contact-right    { grid-column: 1; grid-row: auto; order: 2; }
  .contact-details  { grid-column: 1; grid-row: auto; order: 3; }
  .contact-map-wrap { grid-column: 1; grid-row: auto; order: 4; }

  .ct-heading {
    font-size: clamp(50px, 14vw, 72px);
  }

  .ct-field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  /* Page wrapper */
  .contact-wrap {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 60px;
    padding-inline: 16px;
  }

  /* Hero heading */
  .ct-heading {
    font-size: clamp(40px, 11vw, 60px);
  }

  /* Tagline + intro */
  .ct-tagline {
    font-size: 16px;
  }

  .ct-intro {
    font-size: 15px;
  }

  /* Contact info cards — hide arrow, tighten grid */
  .ct-item {
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 12px 14px;
    min-height: auto;
  }

  .ct-item__arrow {
    display: none;
  }

  /* Form panel */
  .ct-form-panel {
    padding: 20px 16px;
  }

  .ct-form-title {
    font-size: 1.1rem;
  }

  .ct-form-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  /* Inputs — larger touch targets, 16px prevents iOS auto-zoom */
  .ct-input {
    padding: 14px 14px;
    font-size: 16px;
    border-radius: 10px;
  }

  /* Select — keep chevron correctly positioned at mobile padding */
  .ct-select {
    background-position: right 14px center;
    padding-right: 40px;
  }

  /* Field rows and full-width groups — more breathing room */
  .ct-field-row {
    margin-bottom: 14px;
  }

  .ct-field-group--full {
    margin-bottom: 14px;
  }

  /* Message textarea — comfortable height, clear bottom gap */
  .ct-textarea {
    min-height: 120px;
    padding: 14px;
  }

  .ct-char-count {
    margin-bottom: 16px;
  }

  /* Error messages — slightly larger, full width */
  .ct-field-error {
    font-size: 13px;
    margin-top: 6px;
    gap: 6px;
  }

  .ct-field-error::before {
    width: 15px;
    height: 15px;
  }

  /* Invalid field — stronger red left border for at-a-glance scanning */
  .ct-input.is-invalid {
    border-left: 3px solid rgba(229,62,62,0.85);
    padding-left: 12px;
  }

  /* Submit button — taller for easier tapping */
  .ct-submit-btn {
    height: 54px;
    font-size: 15px;
    border-radius: 10px;
  }

  /* Map overlay */
  .ct-map__overlay {
    width: 120px;
    padding: 14px 12px;
  }

  .ct-map__city {
    font-size: 13px;
  }

  .ct-map__country {
    font-size: 11px;
  }

  .ct-map__link {
    font-size: 11px;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .contact-wrap {
    padding-inline: 12px;
    padding-top: calc(var(--nav-height) + 28px);
  }

  .ct-heading {
    font-size: clamp(34px, 10vw, 48px);
  }

  .ct-item {
    grid-template-columns: 40px 1fr;
    gap: 10px;
    padding: 10px 12px;
  }

  .ct-item__icon-wrap {
    width: 40px;
    height: 40px;
  }

  .ct-form-panel {
    padding: 16px 12px;
  }

  .ct-input {
    font-size: 16px;
    padding: 13px 12px;
  }

  .ct-field-error {
    font-size: 12px;
  }

  .ct-submit-btn {
    height: 50px;
  }

  .ct-success {
    padding: 32px 16px;
  }

  .ct-success__icon {
    width: 60px;
    height: 60px;
  }

  .ct-success__heading {
    font-size: 1.25rem;
  }

  .ct-map__overlay {
    width: 100px;
    padding: 10px;
  }
}
