/* Public Contact Us — matches auth.css design language */
.contact-public-page {
  --contact-accent: var(--primary, #2b211c);
  --contact-accent-hover: var(--primary-hover, #1d1613);
}

.contact-public-page body,
body.contact-public-page {
  align-items: flex-start;
  padding: 32px 20px 48px;
}

.contact-page .auth-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.15fr);
  gap: 0;
  background: var(--card-bg);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  animation: fadeInUp 0.55s ease-out;
}

.contact-info {
  position: relative;
  padding: 40px 36px;
  /* Matches the login brand panel (ink gradient) so the two pages read as one product. */
  background: linear-gradient(155deg, #4a3a32 0%, var(--contact-accent) 48%, #150f0d 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.contact-info::after {
  content: '';
  position: absolute;
  right: -40px;
  top: 50%;
  width: 80px;
  height: 80px;
  margin-top: -40px;
  background: var(--card-bg);
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
}

.contact-info__logo {
  margin-bottom: 28px;
}

.contact-info__logo span {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  padding: 12px 16px;
  border-radius: 14px;
  backdrop-filter: blur(6px);
}

.contact-info__logo img {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.contact-info__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 12px;
}

.contact-info__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
}

.contact-info__details {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.92;
  margin: 0 0 28px;
  flex: 1;
}

.contact-info__highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.contact-info__highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 14px;
  opacity: 0.95;
}

.contact-info__highlights i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.contact-info__back {
  margin-top: auto;
  padding-top: 8px;
}

.contact-info__back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-info__back a:hover {
  opacity: 1;
  transform: translateX(-3px);
}

.contact-form-panel {
  padding: 40px 36px 36px;
}

.contact-form-panel .form-container {
  max-width: none;
  padding: 0;
  box-shadow: none;
  animation: none;
  background: transparent;
}

.contact-form-panel__heading {
  margin-bottom: 28px;
}

.contact-form-panel__heading h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 8px;
}

.contact-form-panel__heading p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.contact-public-page .required {
  color: #ff4757;
  font-weight: 700;
}

.contact-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 22px;
  line-height: 1.5;
}

.contact-alert i {
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-alert--success {
  background: rgba(46, 213, 115, 0.12);
  color: #1e8449;
  border: 1px solid rgba(46, 213, 115, 0.35);
}

.contact-alert--error {
  background: rgba(255, 71, 87, 0.1);
  color: #c0392b;
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.contact-form-grid .form-group {
  margin-bottom: 0;
}

.contact-form-grid .form-group--full {
  grid-column: 1 / -1;
}

.contact-public-page .input-group--textarea {
  height: auto;
  min-height: 120px;
  align-items: stretch;
}

.contact-public-page .input-group--textarea .icon-box {
  align-self: flex-start;
  padding-top: 14px;
  height: auto;
}

.contact-public-page .input-group--textarea textarea.form-control {
  min-height: 118px;
  padding: 14px 15px;
  resize: vertical;
  line-height: 1.5;
}

.contact-form-actions {
  margin-top: 26px;
  text-align: center;
}

.contact-form-actions .btn-submit {
  width: 100%;
  justify-content: center;
  border-radius: 12px;
  padding: 14px 28px;
}

.contact-form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.contact-form-footer a {
  color: var(--contact-accent);
  font-weight: 600;
  text-decoration: none;
}

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

html.dark .contact-shell {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

html.dark .contact-alert--success {
  background: rgba(46, 213, 115, 0.15);
  color: #7bed9f;
}

html.dark .contact-alert--error {
  background: rgba(255, 71, 87, 0.15);
  color: #ff6b81;
}

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

  .contact-info {
    padding: 32px 28px;
  }

  .contact-info::after {
    display: none;
  }

  .contact-form-panel {
    padding: 32px 28px 28px;
  }
}

@media (max-width: 600px) {
  body.contact-public-page {
    padding: 16px 12px 32px;
  }

  .contact-shell {
    border-radius: 18px;
  }

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

  .contact-info__title {
    font-size: 24px;
  }
}
