
.contact {
  --gap: clamp(1rem, 2vw, 2rem); 
  --field-w: 80%;
  --btn-w: 33.333%;
  --radius: 10px;
}

.contact,
.contact * { box-sizing: border-box; }

.contact__grid {
  display: grid;
  grid-template-columns: 2fr 3fr; 
  gap: var(--gap);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 1rem;
  padding-block: clamp(1.25rem, 3vw, 3rem);
  overflow-x: hidden;
}


@media (max-width: 1024px) {
  .contact__grid {
    grid-template-columns: 2fr 3fr;
    gap: 1rem; 
  }
}


@media (max-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: center; 
  }

  .contact__media,
  .embed-map {
    width: 100%;
    max-width: 600px; 
    margin-inline: auto; 
  }
}


.contact__media img,
.contact__placeholder {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  background: #f3f3f3;
  aspect-ratio: 4/5;
  object-fit: cover;
}


.embed-map {
  position: relative;
  width: 100%;
  margin-left: 10px;
  margin-right: 10px;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: #f3f3f3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.embed-map iframe,
.contact__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


.contact__form {
  display: grid;
  gap: .9rem;
  max-width: 100%;
  justify-items: center;
}

.contact__intro {
  width: var(--field-w);
  margin: 0 auto 1.25rem;
  text-align: left;
  font-size: clamp(1.1rem, 0.6vw + 1rem, 1.35rem);
  line-height: 1.6;
}

.field {
  width: var(--field-w);
  margin-inline: auto;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: .35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: .8rem 1rem;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
  background: #fff;
}

.field textarea {
  min-height: 12rem;
  resize: vertical;
}


.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: #bbb;
  box-shadow: 0 0 0 4px rgba(0,0,0,.05);
}
.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: #e2574c;
}


.contact .btn {
  display: block;
  width: var(--btn-w);
  margin-top: .75rem;
  margin-inline: auto;
  border: 0;
  border-radius: var(--radius);
  padding: .9rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  background: #111;
  color: #fff;
  text-align: center;
}
.contact .btn:focus { outline: 2px solid #1113; outline-offset: 2px; }


.contact__alert {
  border-radius: 12px;
  padding: .9rem 1rem;
  margin: 0 0 1rem;
  font-size: .95rem;
}
.contact__alert--success { background: #e7fbef; border: 1px solid #b8e7cb; }
.contact__alert--error { background: #ffeceb; border: 1px solid #ffc5c1; }


.hp {
  position: absolute !important;
  left: -99999px !important;
  width: 1px; height: 1px; overflow: hidden;
}


.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


.contact__right-media {
  max-width: 100%;
  margin: 1rem 0;
}

.contact__right-media img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}


