/* ===== Contact Page ===== */
@import url('common.css');

.contact-hero {
  overflow: hidden;
  min-height: 66vh;
  background: #0a1c2f;
  align-items: flex-end;
  padding-bottom: 58px;
}
.contact-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.08) saturate(1.1);
  transform-origin: center;
  animation: contactHeroZoom 14s ease-in-out infinite alternate;
}
.contact-hero .overlay {
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.52) 0%, rgba(26, 53, 83, 0.38) 100%);
}
.contact-hero-title,
.contact-hero-sub {
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
  position: relative;
  z-index: 2;
}

@keyframes contactHeroZoom {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.2%, -1%, 0); }
}

.contact-body {
  padding: 70px 24px;
  background: #fafbfc;
}
.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}

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

@media (max-width: 768px) {
  .contact-hero {
    min-height: 60vh;
    padding-bottom: 46px;
  }

  .contact-hero-bg {
    object-position: center 40%;
  }
}

/* Form */
.form-wrap {
  background: #fff;
  padding: 36px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.form-heading { font-size: 1.7rem; margin-bottom: 6px; color: #1a3553; }
.form-sub { font-size: 0.98rem; color: #666; margin-bottom: 24px; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row-2col > div { display: flex; flex-direction: column; gap: 6px; }

.form-row label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a3553;
}
.form-row input,
.form-row select,
.form-row textarea {
  padding: 12px 14px;
  border: 1px solid #d4dce4;
  border-radius: 8px;
  font-size: 0.98rem;
  font-family: inherit;
  background: #fafbfc;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}
.form-row select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #1a3553 50%),
    linear-gradient(135deg, #1a3553 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #1ab555;
  background-color: #f6fffb;
  box-shadow: 0 0 0 3px rgba(26, 181, 85, 0.14);
}
.form-row textarea { resize: vertical; min-height: 120px; }

/* Dropdown option colors (browser support varies) */
#subject-type option {
  background: #ffffff;
  color: #1a3553;
}
#subject-type option:checked,
#subject-type option:hover {
  background: #1a3553;
  color: #ffffff;
}

.form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #555;
  font-weight: 400;
  cursor: pointer;
}
.label-terms-link {
  color: #1a3553;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.label-terms-link:hover {
  color: #1ab555;
}
.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.form-submit {
  align-self: flex-start;
  margin-top: 6px;
}

.form-status {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
}
.form-status.success {
  display: block;
  background: #d4f4dd;
  color: #1a7d3f;
  border-left: 4px solid #1ab555;
}
.form-status.error {
  display: block;
  background: #fde0e0;
  color: #a8221b;
  border-left: 4px solid #d63b3b;
}
.form-status.loading {
  display: block;
  background: #e0eaf5;
  color: #1a3553;
  border-left: 4px solid #1a3553;
}

/* Aside (details + map) */
.contact-aside {
  background: #fff;
  padding: 30px 28px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  height: fit-content;
}
.details-heading { font-size: 1.4rem; margin-bottom: 22px; color: #1a3553; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eef1f4;
}
.contact-item:last-of-type { border-bottom: 0; }
.contact-item i {
  font-size: 1.3rem;
  color: #1ab555;
  margin-top: 2px;
  width: 24px;
  text-align: center;
}
.contact-item strong {
  display: block;
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  font-weight: 600;
}
.contact-item a { color: #1a3553; font-weight: 500; }
.contact-item a:hover { color: #1ab555; }
.contact-item span { color: #555; }

.map-wrap { margin-top: 20px; }

@media (prefers-reduced-motion: reduce) {
  .contact-hero-bg {
    animation: none !important;
    transform: none !important;
  }
}
