/* ========================================
   CONTACT FORM SECTION — Dark glassmorphism
   Self-contained styles, no base CSS dependency
   ======================================== */

.ncf {
  --ncf-bg: #0f0e0c;
  --ncf-ink: var(--color-gray-900);
  --ncf-cream: var(--color-gray-50);
  --ncf-soft: #b0a99c;
  --ncf-muted: var(--color-gray-500);
  --ncf-accent: var(--color-accent);
  --ncf-warm: var(--color-primary);
  --ncf-glass: rgba(255,255,255,0.05);
  --ncf-glass-border: rgba(255,255,255,0.08);

  position: relative;
  isolation: isolate;
  background: var(--ncf-bg);
  color: var(--ncf-cream);
  font-family: 'Golos Text', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  padding: 60px clamp(16px, 4vw, 60px) 40px;
}

/* Reset base styles leaking into this section */
.ncf *, .ncf *::before, .ncf *::after {
  box-sizing: border-box;
}

.ncf a { color: inherit; }

/* ========== CANVAS + BLOBS ========== */
.ncf-morph-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ncf-morph {
  position: absolute;
  filter: blur(40px);
  opacity: 0.2;
  animation: ncfMorphMove 20s ease-in-out infinite alternate;
}

.ncf-morph--2 {
  width: 35vw; height: 35vw;
  bottom: -15%; right: -5%;
  background: conic-gradient(from 180deg, var(--color-primary), var(--color-primary-dark), var(--color-accent), var(--color-primary));
  border-radius: 60% 40% 30% 70% / 40% 60% 40% 60%;
  animation-duration: 28s;
  animation-delay: -6s;
}

.ncf-morph--3 {
  width: 25vw; height: 25vw;
  top: 40%; left: 45%;
  background: radial-gradient(circle, rgba(196,180,154,0.4), transparent);
  border-radius: 50%;
  animation-duration: 18s;
  animation-delay: -10s;
}

@keyframes ncfMorphMove {
  0%   { transform: translate(0,0) rotate(0deg) scale(1);    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%; }
  33%  { transform: translate(30px,-40px) rotate(60deg) scale(1.1);  border-radius: 60% 40% 30% 70% / 40% 60% 40% 60%; }
  66%  { transform: translate(-20px,30px) rotate(120deg) scale(0.95); border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%; }
  100% { transform: translate(10px,-10px) rotate(180deg) scale(1.05); border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%; }
}

/* ========== GLASS BASE ========== */
.ncf-glass {
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--ncf-glass-border);
  border-radius: 24px;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.5s ease,
              border-color 0.3s ease;
  will-change: transform;
}

.ncf-glass:hover {
  border-color: rgba(255,255,255,0.12);
}

/* ========== LAYOUT ========== */
.ncf-page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
.ncf-head {
  margin-bottom: 48px;
}

.ncf-eyebrow {
  color: var(--ncf-accent);
  margin-bottom: 14px;
}

.ncf-eyebrow::before,
.ncf-eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ncf-accent));
}

.ncf-eyebrow::after {
  background: linear-gradient(90deg, var(--ncf-accent), transparent);
}

.ncf-title {
  color: var(--ncf-cream);
  margin: 0;
}

.ncf-title em {
  color: var(--ncf-accent);
}

.ncf-sub {
  font-size: 15px;
  color: var(--ncf-muted);
  margin-top: 10px;
  max-width: 400px;
}

/* ========== DESKTOP 3-COL GRID ========== */
.ncf-grid {
  display: grid;
  grid-template-columns: 1fr 420px 1fr;
  gap: 16px;
  flex: 1;
  align-content: center;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

/* ========== CONTACT CARDS ========== */
.ncf-card {
  padding: 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.ncf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.ncf-card::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

.ncf-card:hover::after { left: 120%; }

.ncf-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(196,180,154,0.08);
  border: 1px solid rgba(196,180,154,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.ncf-card:hover .ncf-icon {
  background: rgba(196,180,154,0.15);
  border-color: rgba(196,180,154,0.25);
  transform: scale(1.05);
}

.ncf-icon svg {
  width: 20px; height: 20px;
  stroke: var(--ncf-accent);
  stroke-width: 1.5;
  fill: none;
}

.ncf-label {
  font-size: 11px;
  color: var(--ncf-muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.ncf-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--ncf-cream);
  transition: color 0.3s ease;
}

.ncf-card:hover .ncf-value { color: var(--ncf-accent); }

.ncf-copied-tag {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ncf-accent);
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.ncf-card.copied .ncf-copied-tag {
  opacity: 1;
  transform: translateY(0);
}

/* Columns */
.ncf-left, .ncf-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.ncf-left  { grid-column: 1; grid-row: 1; }
.ncf-right { grid-column: 3; grid-row: 1; }

/* Messenger card */
.ncf-msg {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ncf-cream);
}

.ncf-msg .ncf-icon svg { fill: currentColor; stroke: none; }
.ncf-msg .ncf-icon { margin-bottom: 0; }

.ncf-msg.tg .ncf-icon { background: rgba(0,136,204,0.1); border-color: rgba(0,136,204,0.15); }
.ncf-msg.tg .ncf-icon svg { color: #0088cc; }
.ncf-msg.max .ncf-icon { background: rgba(85,51,238,0.1); border-color: rgba(85,51,238,0.15); }
.ncf-msg.max .ncf-icon svg { color: #53e; }

.ncf-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-left: auto;
  animation: ncfDotPulse 2s ease-in-out infinite;
}

.max .ncf-dot { background: #53e; }
.tg .ncf-dot { background: #0088cc; }

@keyframes ncfDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.6); }
}

/* ========== CENTER FORM ========== */
.ncf-form-tower {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  padding: 40px 36px;
  z-index: 5;
}

/* Animated border */
.ncf-form-tower::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  padding: 1.5px;
  background: linear-gradient(
    var(--ncf-border-angle, 0deg),
    rgba(196,180,154,0.4),
    rgba(255,255,255,0.05),
    rgba(140,123,99,0.3),
    rgba(255,255,255,0.05),
    rgba(196,180,154,0.4)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ncfRotateBorder 6s linear infinite;
  pointer-events: none;
}

@property --ncf-border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes ncfRotateBorder {
  to { --ncf-border-angle: 360deg; }
}

.ncf-form-tower::after {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 24px;
  background: radial-gradient(ellipse at center, rgba(196,180,154,0.06) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.ncf-form-tower:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 0 60px rgba(196,180,154,0.05);
}

/* Form internals */
.ncf-form-head {
  text-align: center;
  margin-bottom: 32px;
}

.ncf-form-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(196,180,154,0.08);
  border: 1px solid rgba(196,180,154,0.12);
  font-size: 11px;
  font-weight: 600;
  color: var(--ncf-accent);
  margin-bottom: 18px;
}

.ncf-form-badge .ncf-live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4caf50;
  animation: ncfDotPulse 2s ease-in-out infinite;
}

.ncf-form-title {
  font-family: 'Lora', serif;
  font-size: 30px;
  font-weight: 400;
  margin: 0 0 6px 0;
  color: var(--ncf-cream);
}

.ncf-form-sub {
  font-size: 14px;
  color: var(--ncf-muted);
  margin: 0;
}

.ncf-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ncf-field {
  position: relative;
}

.ncf-field input,
.ncf-field textarea {
  width: 100%;
  padding: 20px 18px 10px;
  border: none;
  border-bottom: 1.5px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  border-radius: 12px 12px 0 0;
  font-family: 'Golos Text', sans-serif;
  font-size: 15px;
  color: var(--ncf-cream);
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.ncf-field textarea {
  resize: none;
  height: 90px;
  padding-top: 26px;
}

.ncf-field input:focus,
.ncf-field textarea:focus {
  border-color: var(--ncf-accent);
  background: rgba(255,255,255,0.04);
}

.ncf-field label {
  position: absolute;
  left: 18px;
  top: 16px;
  font-size: 14px;
  color: var(--ncf-muted);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: left;
}

.ncf-field input:focus ~ label,
.ncf-field input:not(:placeholder-shown) ~ label,
.ncf-field textarea:focus ~ label,
.ncf-field textarea:not(:placeholder-shown) ~ label {
  top: 4px;
  font-size: 10px;
  color: var(--ncf-accent);
  letter-spacing: 0.5px;
}

.ncf-glow-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ncf-accent), transparent);
  border-radius: 1px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(196,180,154,0.3);
}

.ncf-field input:focus ~ .ncf-glow-line,
.ncf-field textarea:focus ~ .ncf-glow-line {
  width: 100%;
}

/* Checkbox */
.ncf-cb-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ncf-cb-wrap input { display: none; }

.ncf-cb-box {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-top: 1px;
}

.ncf-cb-wrap input:checked ~ .ncf-cb-box {
  background: var(--ncf-accent);
  border-color: var(--ncf-accent);
}

.ncf-cb-box svg {
  width: 12px; height: 12px;
  stroke: var(--ncf-bg);
  stroke-width: 3;
  fill: none;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.ncf-cb-wrap input:checked ~ .ncf-cb-box svg {
  opacity: 1;
  transform: scale(1);
}

.ncf-cb-label {
  font-size: 12px;
  color: var(--ncf-muted);
  line-height: 1.5;
}

.ncf-cb-label a {
  color: var(--ncf-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(196,180,154,0.3);
}

/* Submit */
.ncf-submit {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ncf-accent), var(--ncf-warm));
  color: var(--ncf-bg);
  font-family: 'Golos Text', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 6px 24px rgba(196,180,154,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ncf-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(196,180,154,0.3);
}

.ncf-submit::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.ncf-submit:hover::after { left: 120%; }

.ncf-submit svg {
  width: 18px; height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s ease;
}

.ncf-submit:hover svg { transform: translateX(4px); }

/* Trust */
.ncf-trust {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.ncf-trust span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--ncf-muted);
}

.ncf-trust svg {
  width: 12px; height: 12px;
  stroke: var(--ncf-accent);
  stroke-width: 1.5;
  fill: none;
}

/* ========== MOBILE ========== */
@media (max-width: 1080px) {
  .ncf-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 480px;
    margin: 0 auto;
  }

  .ncf-form-tower { grid-column: 1; grid-row: 1; }
  .ncf-left  { grid-column: 1; grid-row: 2; display: none; }
  .ncf-right { grid-column: 1; grid-row: 3; display: none; }

  .ncf-mob { display: block !important; grid-column: 1; grid-row: 2; }
}

@media (min-width: 1081px) {
  .ncf-mob { display: none !important; }
}

/* ---- Compact contact panel (mobile only) ---- */
.ncf-mob {
  display: none;
  border-radius: 24px;
  padding: 24px;
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--ncf-glass-border);
}

.ncf-mob-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ncf-muted);
  margin-bottom: 16px;
}

.ncf-mob-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: padding 0.3s ease;
  position: relative;
}

.ncf-mob-row:last-child { border-bottom: none; }
.ncf-mob-row:active { padding-left: 4px; }

.ncf-mob-row .ncf-mr-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(196,180,154,0.08);
  border: 1px solid rgba(196,180,154,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ncf-mob-row .ncf-mr-icon svg {
  width: 16px; height: 16px;
  stroke: var(--ncf-accent);
  stroke-width: 1.5;
  fill: none;
}

.ncf-mob-row .ncf-mr-text { flex: 1; min-width: 0; }
.ncf-mob-row .ncf-mr-label { font-size: 10px; color: var(--ncf-muted); margin-bottom: 1px; }
.ncf-mob-row .ncf-mr-value { font-size: 14px; color: var(--ncf-cream); font-weight: 500; }

.ncf-mob-row .ncf-mr-action {
  font-size: 10px;
  font-weight: 600;
  color: var(--ncf-accent);
  opacity: 0.6;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.ncf-mob-row:active .ncf-mr-action { opacity: 1; }

.ncf-mob-row .ncf-mr-toast {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 600;
  color: var(--ncf-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.ncf-mob-row.copied .ncf-mr-toast { opacity: 1; }
.ncf-mob-row.copied .ncf-mr-action { opacity: 0; }

/* Messengers row */
.ncf-mob-messengers {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.ncf-mob-msg {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ncf-cream);
  transition: all 0.3s ease;
}

.ncf-mob-msg:active { transform: scale(0.97); }

.ncf-mob-msg.max { border-color: rgba(85,51,238,0.15); }
.ncf-mob-msg.max:active { background: rgba(85,51,238,0.08); }
.ncf-mob-msg.tg { border-color: rgba(0,136,204,0.15); }
.ncf-mob-msg.tg:active { background: rgba(0,136,204,0.08); }

.ncf-mob-msg svg { width: 18px; height: 18px; flex-shrink: 0; }
.ncf-mob-msg.max svg { fill: #53e; }
.ncf-mob-msg.tg svg { fill: #0088cc; }

.ncf-mob-msg .ncf-mdot {
  width: 5px; height: 5px;
  border-radius: 50%;
  animation: ncfDotPulse 2s ease-in-out infinite;
}

.ncf-mob-msg.max .ncf-mdot { background: #53e; }
.ncf-mob-msg.tg .ncf-mdot { background: #0088cc; }

/* ---- Home page map wrapper ---- */
.ncf-map-wrapper {
  position: relative;
  z-index: 1;
  isolation: isolate;
  max-width: 1300px;
  margin: 40px auto 0;
  padding: 0 clamp(16px, 4vw, 60px);
}

.ncf-map-wrapper .map-container {
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
}

/* ---- Small phone tweaks ---- */
@media (max-width: 480px) {
  .ncf {
    padding: 40px 12px 24px;
  }

  .ncf-head { margin-bottom: 32px; }
  .ncf-title { font-size: 32px; }
  .ncf-form-tower { padding: 28px 22px; }
  .ncf-trust { flex-direction: column; align-items: center; gap: 8px; }
}

/* === NCF Success state === */
.ncf-form-success {
  text-align: center;
  padding: 48px 24px;
  animation: ncfFadeIn 0.4s ease;
}
.ncf-form-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
.ncf-form-success p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
.ncf-success-icon {
  margin-bottom: 16px;
}
@keyframes ncfFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === NCF Field error === */
.ncf-field-error {
  border-color: #ff4444 !important;
  box-shadow: 0 0 0 2px rgba(255,68,68,0.2);
}

/* === NCF Validation hint message === */
.ncf-field-hint {
  display: block;
  font-size: 0.8rem;
  color: #ff6b6b;
  margin-top: 4px;
  padding-left: 2px;
  animation: ncfFadeIn 0.2s ease;
}
@keyframes ncfFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
