* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: white;
}

.contact-section {
  position: relative;
  padding: 90px 6vw 110px;
  overflow: hidden;
  background: white;
}

/* dotted world-map background, faint, decorative */
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #d9d9d3 1.4px, transparent 1.4px);
  background-size: 14px 14px;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 500'><text x='0' y='400' font-size='500' font-family='sans-serif'>~</text></svg>");
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

/* grid holds details + form; map moves below as its own full-width row */
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  max-width: 1320px;
  margin: 0 auto;
  align-items: start;
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  width: 100%;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--main);
  border-radius: 2px;
  padding: 16px 18px;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  background: white;
  resize: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #8b8f97;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--main);
  box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.1);
}

.send-btn {
  align-self: flex-start;
  background: var(--main);
  color: var(--text-light);
  border: none;
  padding: 15px 42px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.send-btn:hover {
  background: var(--main-lighter);
}

.send-btn:active {
  transform: translateY(1px);
}

.contact-intro {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto 50px;
}

.contact-intro h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.6rem;
  letter-spacing: 0.02em;
  color: var(--main);
  margin: 0 0 22px;
  text-transform: uppercase;
}

.contact-intro p.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--main);
  max-width: 560px;
  margin: 0;
}

.contact-details h2,
.contact-copy h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--main);
  margin: 0 0 14px;
  position: relative;
  padding-bottom: 14px;
}

.contact-details h2::after,
.contact-copy h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--accent, #ffc107);
}

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

.detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border, #e2e2df);
  border-radius: 2px;
  padding: 18px 20px;
}

.detail-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: var(--accent, #ffc107);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-icon svg {
  width: 20px;
  height: 20px;
  color: var(--main);
}

.detail-item p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink);
}

.detail-link {
  font-size: 0.98rem;
  color: var(--main);
  text-decoration: none;
}

.detail-link:hover {
  text-decoration: underline;
}

.socials-item {
  border: none;
  padding: 0;
}

.detail-socials {
  display: flex;
  gap: 8px;
}

.detail-socials a {
  width: 40px;
  height: 40px;
  background: var(--accent, #ffc107);
  color: var(--main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 2px;
  text-decoration: none;
}

/* form fields side by side on desktop */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* map: full-width row below the grid */
.map-wrap {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 50px auto 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 33, 71, 0.14);
  min-height: 420px;
}

.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

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