/* ============================================================
   JOJO — Contact & Visiting Guide (contact.css)
   Editorial, high-trust, authentic architectural layout.
   Ratified tokens: tokens.css + shared.css
   ============================================================ */

/* ---- 01. CONTACT HERO --------------------------------------- */
.contact-hero {
  position: relative;
  background: var(--paper);
  padding-top: calc(var(--nav-h) + var(--s-6));
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--rule);
}

.contact-hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s-8);
  align-items: end;
}

.contact-hero__inner > * {
  min-width: 0;
  max-width: 100%;
}

.contact-hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-hero__kicker {
  font-family: var(--font-label);
  font-size: var(--t-spec);
  font-weight: 600;
  letter-spacing: var(--track-label, 0.14em);
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--s-3);
  display: inline-block;
}

.contact-hero__h1 {
  font-family: var(--font-display);
  font-size: var(--d-1);
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
  color: var(--pitch);
  margin: 0 0 var(--s-4);
}

.contact-hero__lead {
  font-family: var(--font-body);
  font-size: var(--t-lead);
  line-height: var(--lh-body);
  color: var(--ink-muted);
  max-width: 50ch;
  margin: 0 0 var(--s-6);
}

.contact-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}

.contact-hero__meta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  width: 100%;
}

.contact-hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-hero__meta-label {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

.contact-hero__meta-val {
  font-family: var(--font-body);
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--pitch);
}

/* Hero Arrival Plate */
.contact-hero__plate {
  position: relative;
  background: var(--paper-deep);
  border-radius: var(--r-3);
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.contact-hero__plate img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.contact-hero__plate-caption {
  padding: var(--s-3) var(--s-4);
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
  font-family: var(--font-label);
  font-size: var(--t-spec);
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* ---- 02. DIRECT CHANNELS STRIP ----------------------------- */
.contact-channels-section {
  padding-block: var(--space-section-sm);
  background: var(--paper-deep);
  border-bottom: 1px solid var(--rule);
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}

.channel-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--dur-state) var(--ease-out), transform var(--dur-state) var(--ease-out);
}

.channel-card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-2px);
}

.channel-card--primary {
  border-top: 3px solid var(--accent);
  background: #FFFDFB;
}

.channel-card__header {
  margin-bottom: var(--s-5);
}

.channel-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}

.channel-card__pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.25);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.channel-card__title {
  font-family: var(--font-display);
  font-size: var(--d-3);
  letter-spacing: var(--track-display);
  color: var(--pitch);
  margin-bottom: var(--s-2);
  line-height: 1.1;
}

.channel-card__desc {
  font-family: var(--font-body);
  font-size: var(--t-small);
  line-height: var(--lh-body);
  color: var(--ink-muted);
  margin-bottom: var(--s-5);
}

.channel-card__action {
  width: 100%;
}

.channel-card__action .cta {
  width: 100%;
}

/* ---- 03. DETAIL & FORM SECTION ------------------------------ */
.contact-main-section {
  padding-block: var(--space-section);
  background: var(--paper);
}

.contact-main-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--s-8);
  align-items: start;
}

/* Left: Ground Guide */
.facility-guide {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

.guide-block {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  padding: var(--s-6);
}

.guide-block__kicker {
  font-family: var(--font-label);
  font-size: var(--t-spec);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
  display: block;
}

.guide-block__title {
  font-family: var(--font-display);
  font-size: var(--d-3);
  letter-spacing: var(--track-display);
  color: var(--pitch);
  margin-bottom: var(--s-4);
}

.guide-timetable {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.timetable-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: var(--s-2);
  border-bottom: 1px dashed var(--rule);
  font-size: var(--t-small);
}

.timetable-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.timetable-day {
  font-family: var(--font-label);
  font-weight: 600;
  color: var(--pitch);
  letter-spacing: 0.04em;
}

.timetable-time {
  font-family: var(--font-body);
  color: var(--ink-muted);
}

.timetable-note {
  font-family: var(--font-body);
  font-size: var(--t-caption);
  color: var(--ink-faint);
  margin-top: var(--s-2);
  line-height: 1.4;
}

.venue-address {
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--pitch);
  margin-bottom: var(--s-5);
}

.venue-landmark {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  font-size: var(--t-small);
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: var(--s-5);
}

.venue-landmark .spec {
  color: var(--accent);
  white-space: nowrap;
}

.guide-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.guide-check-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--t-small);
  line-height: 1.5;
  color: var(--ink-muted);
}

.guide-check-icon {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--rule);
  margin-top: 1px;
}

/* Right: The Inquiry Form */
.inquiry-container {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  padding: var(--s-7) var(--s-6);
}

.inquiry-header {
  margin-bottom: var(--s-6);
}

.inquiry-kicker {
  font-family: var(--font-label);
  font-size: var(--t-spec);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: var(--s-2);
}

.inquiry-title {
  font-family: var(--font-display);
  font-size: var(--d-2);
  letter-spacing: var(--track-display);
  line-height: var(--lh-display);
  color: var(--pitch);
  margin-bottom: var(--s-2);
}

.inquiry-lead {
  font-family: var(--font-body);
  font-size: var(--t-small);
  line-height: var(--lh-body);
  color: var(--ink-muted);
}

.jojo-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.form-row-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

.f-field {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.f-field label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.f-field input,
.f-field select,
.f-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-2);
  background: var(--paper);
  color: var(--pitch);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  transition: border-color var(--dur-state) var(--ease-out), box-shadow var(--dur-state) var(--ease-out);
}

.f-field input:focus,
.f-field select:focus,
.f-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 90, 59, 0.15);
}

.f-field input::placeholder,
.f-field textarea::placeholder {
  color: #9C988F;
}

.f-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A5A3B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-privacy-note {
  font-family: var(--font-body);
  font-size: var(--t-caption);
  color: var(--ink-faint);
  line-height: 1.4;
  margin-top: var(--s-1);
}

.form-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: var(--s-2);
}

.contact-form-feedback {
  margin-top: var(--s-4);
  padding: var(--s-4);
  border-radius: var(--r-2);
  font-size: var(--t-small);
  line-height: 1.5;
  display: none;
}

.contact-form-feedback.is-success {
  display: block;
  background: #EBF3ED;
  color: #1A542E;
  border: 1px solid #C4DFC9;
}


/* ---- Responsive Breakpoints -------------------------------- */
@media (max-width: 1024px) {
  .contact-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .contact-hero__plate {
    max-width: 640px;
  }
  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: var(--s-7);
  }
  .channels-grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
}

@media (max-width: 600px) {
  .contact-hero__meta-strip {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
  }
  .form-row-duo {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
}
