/* ============================================================
   contact.css — Marinox Group Contact Page
   All classes prefixed ct- to avoid shared stylesheet collisions

   Audit anchors applied:
     A2  · 17px / alpha 0.82 body copy
     A4  · italic-noun H1 fixed (small-word italic instead)
     C1  · all tokens use real project tokens (--acc / --prose /
           --muted / --fd / --fb) with literal fallbacks
   Page polish:
     P1  · sonar canvas opacity 0.32 (success ripples have primacy)
     P3  · H1 trimmed to clamp(2.8rem, 6.5vw, 5.5rem)
     P4  · SVG chevron on select (was text glyph ↓)
     P5  · sticky offset top: 88px
     P6  · static status dot until sending
     P7  · field padding tightened
     P8  · placeholder alpha bumped to 0.36
   ============================================================ */

/* Sonar canvas — fixed full-page background */
#ct-sonar-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.32;
}

/* ===========================
   HERO
   =========================== */
.ct-hero {
  position: relative;
  z-index: 1;
  min-height: 48vh;
  display: flex;
  align-items: flex-end;
  padding-top: 64px;
  padding-bottom: 5rem;
  overflow: hidden;
}

.ct-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  width: 100%;
}

.ct-hero h1 {
  font-family: var(--fd);
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text, #e8f0f3);
}

.ct-hero h1 em {
  font-style: italic;
  color: var(--acc);
}

.ct-hero-coord {
  margin-top: 1.5rem;
  font-family: var(--fb);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 300;
}

.ct-hero-coord span {
  color: var(--acc);
  margin-right: 0.6rem;
}

.ct-hero-signal-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acc) 30%, var(--acc) 70%, transparent);
  opacity: 0.18;
}

/* ===========================
   TRANSMISSION SECTION
   =========================== */
.ct-transmission {
  position: relative;
  z-index: 1;
  padding: 4rem 3rem 8rem;
  max-width: 1200px;
  margin: 0 auto;
}

.ct-grid {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 6rem;
  align-items: start;
}

/* ===========================
   LEFT — STATION INFO
   =========================== */
.ct-station {
  position: sticky;
  top: 88px;
}

.ct-station-label {
  font-size: 0.63rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--acc);
  font-weight: 500;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ct-station-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--acc);
  flex-shrink: 0;
}

.ct-station-title {
  font-family: var(--fd);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text, #e8f0f3);
}

.ct-station-title em {
  font-style: italic;
  color: var(--acc);
}

.ct-station-desc {
  font-size: 17px;
  color: rgba(200, 216, 222, 0.82);
  line-height: 1.7;
  margin-bottom: 3rem;
  font-weight: 300;
}

/* Detail rows */
.ct-details {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(62, 207, 207, 0.18);
}

.ct-detail-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(62, 207, 207, 0.18);
}

.ct-detail-key {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--acc);
  font-weight: 500;
}

.ct-detail-val {
  font-size: 17px;
  color: rgba(200, 216, 222, 0.82);
  font-weight: 300;
}

.ct-detail-val a {
  color: var(--text, #e8f0f3);
  text-decoration: none;
  transition: color 0.2s;
}
.ct-detail-val a:hover { color: var(--acc); }

.ct-social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ct-social a {
  font-size: 0.86rem;
  color: rgba(200, 216, 222, 0.82);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
  position: relative;
}
.ct-social a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--acc);
  transition: width 0.25s;
}
.ct-social a:hover { color: var(--acc); }
.ct-social a:hover::after { width: 100%; }

/* PHASE 1.4 — Reserved state for social channels not yet active.
   Renders the channel names as inert, dimmed text. Removed when
   channels go live and the inner elements convert back to anchors. */
.ct-social--reserved span {
  font-size: 0.86rem;
  color: rgba(200, 216, 222, 0.45);
  cursor: default;
  letter-spacing: 0.06em;
}
.ct-social--reserved span::after { display: none; }

.ct-social-note {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--fd);
  font-style: italic;
  font-size: 14px;
  color: var(--prose-dim);
  letter-spacing: 0.02em;
}

.ct-response-note {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  color: rgba(200, 216, 222, 0.7);
  font-weight: 300;
  letter-spacing: 0.04em;
}

.ct-rn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
  flex-shrink: 0;
  animation: ct-pulse-dot 2.5s ease-in-out infinite;
}

.ct-detail-row--spaced {
  margin-top: 0.6rem;
  border-top: 1px solid rgba(62, 207, 207, 0.06);
}

/* ===========================
   RIGHT — MESSAGE
   =========================== */
.ct-log {
  position: relative;
}

.ct-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(62, 207, 207, 0.18);
}

.ct-log-title {
  font-size: 0.63rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--acc);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.ct-log-title::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--acc);
  flex-shrink: 0;
}

.ct-log-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.63rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Static dot until is-sending; pulses only when transmitting */
.ct-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(62, 207, 207, 0.55);
  transition: background 0.3s;
}
.ct-log-status.is-sending .ct-status-dot {
  background: var(--acc);
  animation: ct-pulse-dot 1.4s ease-in-out infinite;
}

/* ===========================
   FORM
   =========================== */
.ct-form {
  display: flex;
  flex-direction: column;
}

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

.ct-field {
  position: relative;
  border-bottom: 1px solid rgba(62, 207, 207, 0.18);
  padding: 1.8rem 0 0.7rem;
  transition: border-color 0.3s;
}

.ct-form-row .ct-field:first-child {
  border-right: 1px solid rgba(62, 207, 207, 0.18);
  padding-right: 2rem;
}
.ct-form-row .ct-field:last-child {
  padding-left: 2rem;
}

.ct-field:focus-within {
  border-bottom-color: rgba(62, 207, 207, 0.55);
}
.ct-field:focus-within label {
  color: var(--acc);
}

.ct-field label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.3s;
  position: absolute;
  top: 0.7rem;
}

.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text, #e8f0f3);
  font-family: var(--fb);
  font-size: 17px;
  font-weight: 300;
  padding: 1rem 0 0.5rem;
  caret-color: var(--acc);
  -webkit-appearance: none;
  appearance: none;
}

.ct-field input::placeholder,
.ct-field textarea::placeholder {
  color: rgba(200, 216, 222, 0.36);
}

.ct-field textarea {
  resize: none;
  min-height: 120px;
  line-height: 1.65;
}

/* SVG chevron on select */
.ct-select-wrap {
  position: relative;
}
.ct-select-wrap::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 60%;
  transform: translateY(-50%);
  width: 11px;
  height: 7px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7' fill='none'><path d='M1 1L5.5 5.5L10 1' stroke='%233ecfcf' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.ct-field select option {
  background: #071620;
  color: var(--text, #e8f0f3);
}

/* ===========================
   SUBMIT ROW
   =========================== */
.ct-submit-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 2.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

/* TRANSMIT BUTTON */
.ct-btn-transmit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: transparent;
  border: 1px solid var(--acc);
  color: var(--acc);
  font-family: var(--fb);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1.1rem 2.2rem;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.3s;
  white-space: nowrap;
}

.ct-btn-transmit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--acc);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.ct-btn-transmit:hover::before { transform: translateX(0); }
.ct-btn-transmit:hover { color: var(--void); }
.ct-btn-transmit:disabled { opacity: 0.5; cursor: not-allowed; }
.ct-btn-transmit:disabled::before { display: none; }
.ct-btn-transmit:disabled:hover { color: var(--acc); }

.ct-btn-transmit > * {
  position: relative;
  z-index: 1;
}

.ct-btn-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ct-transmit-icon {
  width: 15px;
  height: 15px;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.ct-btn-transmit:hover .ct-transmit-icon {
  transform: translateX(4px) translateY(-4px);
}

/* Sending state */
.ct-btn-transmit.sending .ct-btn-label { display: none; }
.ct-btn-transmit.sending .ct-btn-sending { display: flex !important; }

.ct-btn-sending {
  display: none;
  align-items: center;
  gap: 0.7rem;
}

.ct-sending-dots { display: flex; gap: 4px; }
.ct-sending-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--acc);
  animation: ct-bounce-dot 1.2s ease-in-out infinite;
}
.ct-sending-dots span:nth-child(2) { animation-delay: 0.15s; }
.ct-sending-dots span:nth-child(3) { animation-delay: 0.3s; }

/* ===========================
   SUCCESS PANEL
   =========================== */
.ct-success {
  display: none;
  padding: 4rem 0 2rem;
  text-align: center;
}
.ct-success.visible { display: block; }

.ct-success-signal {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(62, 207, 207, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  position: relative;
  animation: ct-fade-up 0.5s forwards;
}
.ct-success-signal::before,
.ct-success-signal::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(62, 207, 207, 0.25);
  animation: ct-signal-expand 2.2s ease-out infinite;
}
.ct-success-signal::before { inset: -14px; animation-delay: 0s; }
.ct-success-signal::after  { inset: -28px; animation-delay: 0.6s; }

.ct-success-check { color: var(--acc); font-size: 1.4rem; }

.ct-success-heading {
  font-family: var(--fd);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  color: var(--text, #e8f0f3);
  opacity: 0;
  animation: ct-fade-up 0.6s 0.2s forwards;
}
.ct-success-heading em {
  font-style: italic;
  color: var(--acc);
}

.ct-success-body {
  font-size: 17px;
  color: rgba(200, 216, 222, 0.82);
  font-weight: 300;
  line-height: 1.7;
  opacity: 0;
  animation: ct-fade-up 0.6s 0.4s forwards;
}

/* ===========================
   KEYFRAMES
   =========================== */
@keyframes ct-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.65); }
}

@keyframes ct-bounce-dot {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40%           { transform: scale(1); opacity: 1; }
}

@keyframes ct-signal-expand {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.8); opacity: 0; }
}

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

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .ct-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .ct-station {
    position: static;
  }
  .ct-transmission {
    padding: 3rem 1.5rem 5rem;
  }
  .ct-hero-inner {
    padding: 0 1.5rem;
  }
  .ct-form-row {
    grid-template-columns: 1fr;
  }
  .ct-form-row .ct-field:first-child {
    border-right: none;
    padding-right: 0;
  }
  .ct-form-row .ct-field:last-child {
    padding-left: 0;
  }
}

@media (max-width: 520px) {
  .ct-submit-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .ct-btn-transmit {
    width: 100%;
    justify-content: center;
  }
}
