/* =========================================================
   contact.css — page-specific styles for contact.html
   Requires style.css (variables, form, split, buttons) and
   about.css (page-hero, breadcrumb) to be loaded first
   ========================================================= */

/* ---------- Info cards ---------- */
.info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.info__card {
  display: block;
  padding: 2rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  transition:
    transform 0.3s,
    background 0.3s,
    border-color 0.3s;
}
a.info__card:hover {
  transform: translateY(-6px);
  background: var(--surface-hover);
  border-color: rgba(34, 211, 238, 0.4);
  color: inherit;
}
.info__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  font-size: 1.4rem;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.info__card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.info__card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* ---------- Layout ---------- */
.split--top {
  align-items: stretch;
}

/* ---------- Form additions ---------- */
.form__intro {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 2.5rem 0.85rem 1rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239aa5bf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15);
}
select option {
  background: #0b1122;
  color: var(--text);
}

.form .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form__status {
  margin: 0;
  font-size: 0.92rem;
  display: none;
}
.form__status.is-success,
.form__status.is-error {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 12px;
}
.form__status.is-success {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.form__status.is-error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* ---------- Map ---------- */
.map {
  position: relative;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* tint the light Google map to sit better on the dark theme */
  filter: invert(0.92) hue-rotate(180deg) saturate(0.8) brightness(0.95);
}
.map__note {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: rgba(7, 11, 22, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}
.map__note span {
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .info {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .map {
    min-height: 340px;
  }
}

@media (max-width: 600px) {
  .info {
    grid-template-columns: 1fr;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
  .map {
    min-height: 300px;
  }
}
