/* ==========================================================================
   MVG Global — Contact Page & Form Styles
   Shares corporate hero geometry, input design tokens, and panel aesthetics
   with the online payment design system.
   ========================================================================== */

.hero-layout--contact {
  max-height: none;
  overflow: visible;
}

.hero-layout--contact .hero-stage-column {
  min-width: 0;
  align-items: stretch;
}

.hero-layout--contact .hero-copy {
  min-height: 500px;
}

.contact-module {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(12px, 1.4vw, 26px);
  flex: 1;
  min-width: 0;
}

.contact-panel,
.contact-info {
  min-width: 0;
  padding: clamp(20px, 2vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.contact-panel {
  background: #ffffff;
}

.contact-info {
  background: var(--rail);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-header {
  flex-shrink: 0;
  margin-bottom: clamp(16px, 2vw, 28px);
}

.contact-info-header h2 {
  margin-bottom: 0;
}

.contact-info-body {
  margin-top: auto;
}

/* Headings */
.contact-heading {
  margin-bottom: 24px;
}

.contact-panel-title,
.contact-info h2 {
  font-size: clamp(23px, 1.9vw, 30px);
  line-height: 1.25;
  font-weight: 500;
  margin: 10px 0 8px;
  letter-spacing: -0.6px;
  color: var(--ink);
}

.contact-panel-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.contact-mobile-title {
  display: none;
}

/* Form Fields */
.contact-field-group {
  margin-bottom: 20px;
}

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

.contact-panel label {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
}

.contact-panel label small {
  display: inline;
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
  margin-left: 4px;
}

.contact-req {
  color: var(--teal);
}

.contact-panel input:not([type=hidden]):not([type=checkbox]),
.contact-panel textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-panel input:not([type=hidden]):not([type=checkbox])::placeholder,
.contact-panel textarea::placeholder {
  color: var(--placeholder);
  opacity: 1;
  font-size: 15px;
}

.contact-panel textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.contact-panel input:focus-visible,
.contact-panel textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--teal);
}

/* Submit Action Button */
.contact-panel .contact-action {
  background: var(--brand-lime);
  border: 1px solid var(--brand-lime);
  border-radius: var(--radius-control);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: normal;
  width: 100%;
  max-width: none;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  margin: 8px 0 0;
}

.contact-panel .contact-action:hover {
  background: var(--brand-lime-hover);
  border-color: var(--brand-lime-hover);
}

.contact-panel .contact-action:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Legal text */
.contact-legal {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin: 16px 0 0;
}

.contact-legal a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-legal a:hover {
  color: var(--ink);
}

/* Alert Notification */
.contact-alert {
  padding: 14px 16px;
  border-left: 3px solid var(--error-accent);
  background: var(--error-bg);
  border-radius: 4px;
  margin-bottom: 20px;
}

.contact-alert p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--error-ink);
}

/* Honeypot hidden styles */
.contact-pot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Right stage: Contact Information Panel */
.contact-info .art-note {
  color: var(--teal);
  font-size: 12px;
  font-weight: 650;
  display: block;
}

.contact-info-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-info-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-info-label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.contact-info-value {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  word-break: break-word;
}

.contact-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.contact-link:hover {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-pending-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--badge-bg);
  color: var(--badge-ink);
  border: 1px dashed var(--badge-border);
}

/* Success View */
.contact-success-box {
  padding: 12px 4px;
  text-align: left;
}

.contact-success-mark {
  width: 60px;
  height: 60px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 18px;
}

.contact-success-mark circle {
  stroke-dasharray: 183;
  animation: contact-ring 0.7s ease-out both;
}

.contact-success-mark path {
  stroke-dasharray: 42;
  animation: contact-check 0.45s 0.55s ease-out both;
}

@keyframes contact-ring {
  from {
    stroke-dashoffset: 183;
    opacity: 0;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes contact-check {
  from {
    stroke-dashoffset: 42;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-success-mark circle,
  .contact-success-mark path {
    animation: none;
  }
}

.contact-success-title {
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.6px;
}

.contact-success-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 28px;
}

.contact-success-action {
  max-width: 320px;
}

/* Responsive Behavior */
@media (max-width: 1240px) {
  .contact-module {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-layout--contact {
    overflow: visible;
  }

  .hero-layout--contact .hero-rail {
    display: none;
  }

  .hero-layout--contact .hero-stage-column {
    padding-top: 64px;
  }

  .hero-layout--contact .contact-panel,
  .hero-layout--contact .contact-info {
    padding: 22px 18px;
  }

  .contact-mobile-title {
    display: block;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.8px;
    margin: 0 0 16px;
    color: var(--ink);
  }

  .contact-mobile-title em {
    color: var(--teal);
    font-style: normal;
    font-weight: 600;
  }

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

  .contact-field-group {
    margin-bottom: 16px;
  }

  .contact-panel input:not([type=hidden]):not([type=checkbox]),
  .contact-panel textarea {
    margin-bottom: 0;
  }

  .contact-panel textarea {
    min-height: 100px;
  }

  .contact-panel input,
  .contact-panel textarea,
  .contact-panel button {
    scroll-margin-top: 80px;
    scroll-margin-bottom: 80px;
  }
}

