/* Ported from components/Contact/index.tsx, including the form itself
   (see template-parts/contact.php) — a native form posting to
   admin-post.php, not a form-plugin's generic markup. */

.p3-contact { position: relative; background: #0a0a0a; padding: 160px 0 224px; overflow: hidden; }
@media (max-width: 900px) { .p3-contact { padding: 100px 0 140px; } }
.p3-contact-inner { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .p3-contact-inner { padding: 0 40px; } }

.p3-contact-h { font-family: var(--font-display); font-size: clamp(34px, 4.5vw, 67px); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: 32px; color: #fff; }
.p3-contact-lead { max-width: 640px; margin-bottom: 80px; color: rgba(255,255,255,.55); font-size: 1rem; line-height: 1.7; }
@media (min-width: 768px) { .p3-contact-lead { font-size: 1.125rem; } }

.p3-contact-grid { display: grid; grid-template-columns: 1fr; gap: 64px; }
@media (min-width: 1024px) { .p3-contact-grid { grid-template-columns: 1fr 1fr; gap: 96px; } }

.p3-contact-info { display: flex; flex-direction: column; gap: 24px; }
.p3-contact-blocks { display: flex; flex-direction: column; gap: 24px; }
.p3-contact-card {
  display: flex; align-items: flex-start; gap: 16px; padding: 20px; border-radius: 12px;
  background: #000; border: 1px solid rgba(255,255,255,.1); text-decoration: none;
  transition: border-color .3s, background-color .3s;
}
.p3-contact-card:hover { border-color: rgba(255,255,255,.25); background: #0a0a0a; }
.p3-contact-card-icon {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); color: rgba(255,255,255,.4); transition: all .3s;
}
.p3-contact-card:hover .p3-contact-card-icon { background: rgba(201,203,207,.1); color: #c9cbcf; }
.p3-contact-card-label { font-size: .65rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 4px; }
.p3-contact-card-value { color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 500; line-height: 1.3; transition: color .2s; }
.p3-contact-card:hover .p3-contact-card-value { color: #fff; }

.p3-contact-hours { padding: 24px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: #000; }
.p3-contact-hours-title { font-size: .65rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 16px; }
.p3-contact-hours-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.p3-contact-hours-row:last-child { border-bottom: 0; }
.p3-contact-hours-row .days { color: rgba(255,255,255,.45); font-size: .875rem; }
.p3-contact-hours-row .hours { color: rgba(255,255,255,.7); font-size: .875rem; font-weight: 500; }

/* Native contact form */
.p3-contact-form-wrap { position: relative; }
.p3-contact-form { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: 16px; background: #000; border: 1px solid rgba(255,255,255,.1); overflow: hidden; }
@media (min-width: 768px) { .p3-contact-form { padding: 40px; } }
.p3-contact-form::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #c9cbcf, #45454a, transparent); }

.p3-contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.p3-contact-field { display: flex; flex-direction: column; gap: 8px; }
.p3-contact-field-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .p3-contact-field-row { grid-template-columns: 1fr 1fr; } }

.p3-contact-form label { display: block; font-size: .65rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.p3-contact-optional { text-transform: none; color: rgba(255,255,255,.25); margin-left: 4px; }

/* font-size: 1rem (16px), not .875rem — any focusable field under 16px
   makes iOS Safari auto-zoom the whole page in on focus (matches the
   same fix applied to the Next.js version's inputCls). */
.p3-contact-form input[type=text], .p3-contact-form input[type=email], .p3-contact-form input[type=tel], .p3-contact-form textarea, .p3-contact-form select {
  width: 100%; background: #000; border: 1px solid rgba(255,255,255,.16); border-radius: 12px;
  padding: 14px 16px; font-size: 1rem; color: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.6);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.p3-contact-form input::placeholder, .p3-contact-form textarea::placeholder { color: rgba(255,255,255,.3); }
.p3-contact-form input:focus, .p3-contact-form textarea:focus, .p3-contact-form select:focus {
  outline: none; border-color: rgba(255,255,255,.45); background: #0a0a0a;
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}
.p3-contact-form select { appearance: none; color: rgba(255,255,255,.8);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.3)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.p3-contact-form select option { background: #111; }
.p3-contact-form textarea { min-height: 120px; resize: vertical; }

.p3-contact-submit {
  margin-top: 8px; width: 100%; background: #45454a; color: #fff; font-weight: 700; font-size: .875rem; border: none; border-radius: 999px;
  padding: 16px 32px; letter-spacing: .02em; cursor: pointer; transition: box-shadow .2s, transform .2s;
}
.p3-contact-submit:hover { box-shadow: 0 0 50px rgba(255,255,255,.15); transform: scale(1.02); }
.p3-contact-submit:active { transform: scale(.98); }

.p3-contact-error { color: #fff; font-size: .875rem; text-align: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 12px 16px; }

.p3-contact-success {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 400px; gap: 24px; border-radius: 16px; border: 1px solid rgba(201,203,207,.2);
  background: rgba(201,203,207,.04); padding: 48px;
}
.p3-contact-success h3 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.p3-contact-success p { color: rgba(255,255,255,.5); font-size: .875rem; line-height: 1.625; }

.p3-contact-note { color: rgba(255,255,255,.35); font-size: .78rem; margin-top: 16px; }
