/* ==========================================================================
   E-Space — Contact page (mirrors gordonsnewyorkpizza.vn/contact/)
   Loaded after style.css; shared classes are only overridden in page scope.
   ========================================================================== */

/* ---------- Visit band (reference: #F8F8F8, two 50% columns, 100px gap) ---------- */
.visit { background: var(--bg-alt); padding: 40px 10px; }
.visit__inner {
  display: flex;
  justify-content: center;
  gap: 100px;
  max-width: var(--container-wide);
  margin: 0 auto;
}
.visit__intro { flex: 1 1 50%; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.visit__intro p { margin: 0; max-width: 540px; }
.visit__title { font-size: 52px; line-height: 1em; letter-spacing: -2px; }
.visit__title .brush { position: relative; display: inline-block; white-space: nowrap; }
.visit__title .brush svg {
  position: absolute;
  left: -2%;
  bottom: -.2em;
  width: 104%;
  height: .32em;
  overflow: visible;
}
.visit__title .brush path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: brush-draw 4.8s ease-in-out infinite;
}
.visit__title .brush path + path { stroke-width: 3; opacity: .7; animation-delay: .25s; }
@keyframes brush-draw {
  0% { stroke-dashoffset: 700; }
  25%, 80% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -700; }
}

.visit__map {
  flex: 1 1 50%;
  min-width: 0;
  border: 1px solid var(--accent);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.visit__map h6 { margin: 0; }
.visit__map .map-frame { flex: 1 1 auto; height: auto; min-height: 501px; }  /* grows with the form column */

/* ---------- Visit details: the café has one address, so a 4-column info strip replaces the location cards ---------- */
.spots { padding: 60px 20px; }
.spots__grid {
  --spot-rule: color-mix(in srgb, var(--accent) 45%, transparent);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--container-wide);
  margin: 0 auto;
  border: 2px solid var(--accent);
}
.spot { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 34px 30px; }
.spot + .spot { border-left: 1px solid var(--spot-rule); }
.spot__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}
.spot__icon svg { width: 20px; height: 20px; fill: currentColor; }
.spot h6 { margin: 6px 0 0; }
.spot p { margin: 0; font-size: 14px; line-height: 1.7; }
.spot p a { color: var(--text); }
.spot p a:hover { color: var(--accent); }
.spot__hours { width: 100%; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.spot__hours li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.spot__hours li:last-child { padding-bottom: 0; border-bottom: 0; }
.spot__hours b { font-weight: 600; white-space: nowrap; }
.spot__link {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
}
.spot__link svg { width: 18px; height: 18px; transition: transform .3s; }
.spot__link:hover, .spot__link:focus-visible { color: var(--accent); }
.spot__link:hover svg, .spot__link:focus-visible svg { transform: translateX(4px); }

/* ---------- Contact info + form inside the Visit band (UI only) ---------- */
.visit__info { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.visit__info li { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; }
.visit__info svg { width: 16px; height: 16px; flex: 0 0 16px; fill: var(--accent); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin: 10px 0 0;
  text-align: left;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text);
}
.field label b { color: var(--accent-text); }
.field input, .field select, .field textarea {
  width: 100%;
  font: 14px/1.4 var(--font-body);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--field-line);
  border-radius: 0;
  padding: 12px 14px;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23A16D47' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 9 7 7 7-7'/%3E%3C/svg%3E") right 14px center / 12px no-repeat;
  cursor: pointer;
}
.field ::placeholder { color: var(--placeholder); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(161, 109, 71, .15);
}
.contact-form__actions .btn { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.contact-form__actions .btn:hover, .contact-form__actions .btn:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

@media (prefers-reduced-motion: reduce) {
  .visit__title .brush path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .visit { padding: 80px 20px; }
  .visit__inner { flex-direction: column-reverse; align-items: stretch; gap: 50px; }
  .visit__intro, .visit__map { flex: 0 0 auto; }
  .visit__map { padding: 30px; }
  .visit__map .map-frame { height: 400px; }
  .visit__title { font-size: 37px; letter-spacing: -1px; }
  .spots__grid { grid-template-columns: repeat(2, 1fr); }
  .spot + .spot { border-left: 0; }
  .spot:nth-child(even) { border-left: 1px solid var(--spot-rule); }
  .spot:nth-child(n + 3) { border-top: 1px solid var(--spot-rule); }
  .visit__map .map-frame { flex: 0 0 auto; min-height: 0; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .visit { padding: 40px 20px; }
  .visit__inner { gap: 20px; }
  .visit__intro { align-items: center; text-align: center; }
  .visit__intro p { max-width: 90%; }
  .visit__title { font-size: 30px; }
  .visit__map { padding: 10px; }
  .visit__map h6 { text-align: center; }
  .visit__map .map-frame { height: 240px; }
  .spots { padding: 30px 16px 40px; }
  .spots__grid { grid-template-columns: 1fr; }
  .spot { padding: 26px 22px; }
  .spot:nth-child(even) { border-left: 0; }
  .spot + .spot { border-top: 1px solid var(--spot-rule); }
  .visit__info { flex-direction: column; align-items: center; }
  .contact-form { grid-template-columns: 1fr; width: 100%; }
  .contact-form__actions .btn { width: 100%; }
}
