/* ==========================================================================
   Contact Page — "Get In Touch" two-column section
   Location: assets/css/contact-form.css
   Enqueued only on the `template-contact.php` page template.

   No background color on the info panel or the form panel — both sit
   directly on the page's off-white background, separated only by a
   thin border/divider, with Ancient Red / gold used just as text and
   accent colors (headings, icons, the submit button) rather than as
   a solid fill.
   ========================================================================== */

.lgm-contact-form-section {
  padding-block: 0 var(--lgm-space-2xl);
  background: var(--lgm-off-white);
}

.lgm-contact-form-wrap {
  max-width: var(--lgm-container-max);
  margin-inline: auto;
  padding-inline: var(--lgm-space-md);
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  border-radius: var(--lgm-radius-card);
  border: 1px solid var(--lgm-border);
  overflow: hidden;
}

/* ---- Info panel — no background fill, just text/border ---- */

.lgm-contact-info-panel {
  background: transparent;
  color: var(--lgm-dark-grey);
  padding: var(--lgm-space-xl) var(--lgm-space-lg);
  border-right: 1px solid var(--lgm-border);
}

.lgm-contact-info-panel h2 {
  color: var(--lgm-heading-color);
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  margin-bottom: var(--lgm-space-lg);
}

.lgm-contact-info-block {
  margin-bottom: var(--lgm-space-lg);
}

.lgm-contact-info-block h3 {
  color: var(--lgm-ancient-red);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.lgm-contact-info-value {
  margin: 0 0 4px;
  font-style: italic;
  color: var(--lgm-dark-grey);
}

.lgm-contact-info-value a {
  color: var(--lgm-dark-grey);
}

.lgm-contact-info-value a:hover {
  color: var(--lgm-ancient-red);
}

/* ---- Form panel — no background fill, sits on the page color ---- */

.lgm-contact-form-panel {
  background: transparent;
  padding: var(--lgm-space-xl) var(--lgm-space-lg);
}

.lgm-contact-form {
  max-width: 640px;
  margin-inline: auto;
}

.lgm-contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--lgm-space-md);
}

.lgm-contact-form-row-name {
  grid-template-columns: 140px 1fr 1fr;
}

.lgm-contact-field {
  margin-bottom: var(--lgm-space-md);
}

.lgm-contact-field label {
  display: block;
  color: var(--lgm-heading-color);
  font-weight: 500;
  margin-bottom: 8px;
}

.lgm-required {
  color: var(--lgm-ancient-red);
}

.lgm-contact-field input[type="text"],
.lgm-contact-field input[type="email"],
.lgm-contact-field input[type="tel"],
.lgm-contact-field textarea,
.lgm-contact-field select,
.lgm-phone-code {
  width: 100%;
  background: var(--lgm-white);
  border: 1px solid var(--lgm-border);
  border-radius: var(--lgm-radius-sm);
  color: var(--lgm-dark-grey);
  padding: 12px 14px;
  font-family: var(--lgm-font-body);
  font-size: 1rem;
  transition: border-color var(--lgm-transition-fast), box-shadow var(--lgm-transition-fast);
}

.lgm-contact-field textarea {
  resize: vertical;
  min-height: 120px;
}

.lgm-contact-field input:focus-visible,
.lgm-contact-field textarea:focus-visible,
.lgm-contact-field select:focus-visible,
.lgm-phone-code:focus-visible {
  border-color: var(--lgm-ancient-red);
  box-shadow: var(--lgm-shadow-focus);
}

.lgm-phone-group {
  display: flex;
  gap: 10px;
}

.lgm-phone-code {
  flex: 0 0 220px;
  cursor: pointer;
}

.lgm-phone-group input {
  flex: 1;
}

/* Field-level error text — mirrors the reference's red inline error,
   but only ever shown after a real failed validation attempt. */
.lgm-contact-error {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: #E5484D;
  font-size: 0.85rem;
}

.lgm-contact-error::before {
  content: "\26A0";
  font-size: 0.9rem;
}

.lgm-contact-field.has-error input,
.lgm-contact-field.has-error textarea,
.lgm-contact-field.has-error select,
.lgm-contact-field.has-error .lgm-phone-code {
  border-color: #E5484D;
}

.lgm-contact-field.has-error .lgm-contact-error {
  display: flex;
}

.lgm-contact-form-status {
  min-height: 0;
  margin-bottom: var(--lgm-space-sm);
  font-size: 0.95rem;
}

.lgm-contact-form-status.is-success {
  color: #4ADE80;
}

.lgm-contact-form-status.is-error {
  color: #E5484D;
}

.lgm-contact-submit {
  display: block;
  width: auto;
  min-width: 140px;
  margin-inline: auto 0;
  padding: 10px 28px;
  font-size: 0.8rem;
}

@media (max-width: 560px) {
  .lgm-contact-submit {
    margin-inline: auto;
  }
}

.lgm-contact-submit[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* Honeypot — kept in the DOM/tab order out of view, not display:none,
   so it still catches naive bots while staying invisible to sighted
   users and skipped correctly by screen readers via aria-hidden. */
.lgm-contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .lgm-contact-form-wrap {
    grid-template-columns: 1fr;
  }

  .lgm-contact-info-panel {
    border-right: none;
    border-bottom: 1px solid var(--lgm-border);
  }
}

@media (max-width: 560px) {
  .lgm-contact-form-row,
  .lgm-contact-form-row-name {
    grid-template-columns: 1fr;
  }

  .lgm-phone-group {
    flex-direction: column;
  }

  .lgm-phone-code {
    flex: 1;
  }
}
