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

.page-banner--contact {
  background:
    linear-gradient(105deg, rgba(7, 15, 28, 0.9) 0%, rgba(15, 39, 68, 0.84) 48%, rgba(35, 158, 145, 0.34) 100%),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1920&q=80") center / cover no-repeat;
}

.contact-page {
  padding-top: 48px;
}

.contact-intro {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.contact-intro h2 {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 12px;
}

.contact-intro p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-light);
}

/* Quick contact strip */
.contact-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto 32px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.contact-channel:hover {
  border-color: rgba(39, 108, 245, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(39, 108, 245, 0.12);
}

.contact-channel--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.45);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.14);
}

.contact-channel__icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 22px;
}

.contact-channel--whatsapp .contact-channel__icon {
  background: #e8f9ef;
  color: #128c4b;
}

.contact-channel__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-channel__text strong {
  font-size: 14px;
  color: var(--text);
}

.contact-channel__text span {
  font-size: 13px;
  color: var(--text-light);
  overflow-wrap: anywhere;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.45fr);
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: stretch;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card,
.contact-form,
.contact-map-section {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  border-radius: 14px;
}

.contact-info-card--highlight {
  border-color: rgba(39, 108, 245, 0.2);
  background: linear-gradient(135deg, #fff 0%, #f6f9ff 100%);
}

.contact-info-card__icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 24px;
}

.contact-info-card h3 {
  font-size: 15px;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-info-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
}

.contact-info-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-light);
}

.contact-info-list li + li {
  margin-top: 4px;
}

.contact-info-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #eef5ff;
  border: 1px solid rgba(39, 108, 245, 0.18);
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.7;
}

.contact-info-note i {
  flex: 0 0 auto;
  font-size: 20px;
  color: var(--primary);
  margin-top: 2px;
}

.contact-form {
  border-radius: 16px;
  padding: 32px;
}

.contact-form__header {
  margin-bottom: 24px;
}

.contact-form__header h2 {
  font-size: 24px;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-form__header p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
}

.contact-form-status {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}

.contact-form-status--success {
  background: #e8f9ef;
  border: 1px solid rgba(18, 140, 75, 0.25);
  color: #0f5c32;
}

.contact-form-status--error {
  background: #fef2f2;
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #991b1b;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-field--wide {
  grid-column: 1 / -1;
}

.contact-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.contact-required {
  color: #dc2626;
  font-weight: 700;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 10px;
  padding: 13px 14px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

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

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(39, 108, 245, 0.12);
}

.contact-field--invalid input,
.contact-field--invalid select,
.contact-field--invalid textarea {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.contact-field__error {
  min-height: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #dc2626;
  font-weight: 500;
}

.contact-field__error:empty {
  display: none;
}

.contact-field__hint {
  margin: -4px 0 0;
  font-size: 12px;
  color: var(--text-light);
}

.contact-form__privacy {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-light);
}

.contact-form__privacy a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.contact-form__privacy a:hover {
  text-decoration: underline;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  min-height: 48px;
  padding: 13px 26px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.contact-submit:hover {
  background: var(--primary-hover);
  box-shadow: 0 12px 24px rgba(39, 108, 245, 0.24);
}

.contact-submit:active {
  transform: scale(0.98);
}

.contact-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Map section */
.contact-map-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1fr);
  max-width: 1180px;
  min-height: 320px;
  margin: 40px auto 0;
  border-radius: 16px;
  overflow: hidden;
}

.contact-map-content {
  padding: 34px;
  align-self: center;
}

.contact-map-content h2 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 12px;
}

.contact-map-content p {
  max-width: 460px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 22px;
}

.contact-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.contact-map-link:hover {
  background: var(--primary);
  color: #fff;
}

.contact-map-link--directions {
  background: #eaf7f5;
  color: #0f766e;
}

.contact-map-link--directions:hover {
  background: #0f766e;
  color: #fff;
}

.contact-map-embed {
  position: relative;
  min-height: 320px;
  background: #e8edf5;
}

.contact-map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 992px) {
  .contact-channels {
    grid-template-columns: 1fr;
  }

  .contact-layout,
  .contact-map-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-page {
    padding-top: 32px;
  }

  .contact-intro {
    margin-bottom: 24px;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .contact-form__header h2 {
    font-size: 21px;
  }

  .contact-submit {
    width: 100%;
  }

  .contact-map-content {
    padding: 28px 22px;
  }

  .contact-map-embed {
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-channel,
  .contact-field input,
  .contact-field select,
  .contact-field textarea,
  .contact-submit,
  .contact-map-link {
    transition: none;
  }
}
