/* ============================================================
   EPF ECOSYSTEM — CONTACT PAGE STYLES
   assets/css/contact.css
   ============================================================ */

/* ── PAGE HERO ── */
.page-hero {
  position: relative;
  background: var(--bg-dark);
  padding: clamp(72px, 10vw, 120px) 0 clamp(56px, 7vw, 88px);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13, 22, 40, 0.98) 0%,
    rgba(13, 22, 40, 0.82) 55%,
    rgba(13, 22, 40, 0.60) 100%
  );
  z-index: 1;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--coral) 50%, transparent);
  z-index: 3;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
}

.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(108, 190, 237, 0.12);
  border: 1px solid rgba(108, 190, 237, 0.3);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.page-hero-tag-dot {
  font-size: 8px;
}

.page-hero-title {
  font-family: var(--fd);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
}

.page-hero-title-accent {
  color: var(--teal);
  display: block;
}

.page-hero-desc {
  font-size: 17px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.65);
  max-width: 600px;
  font-weight: 300;
}

/* ── QUICK CONTACT CARDS ── */
.quick-contact-section {
  background: var(--bg-muted);
}

.quick-contact-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.quick-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.quick-contact-card {
  background: var(--bg-white);
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.quick-contact-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-4px);
  border-color: var(--teal-line);
}

.quick-contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.quick-contact-icon-teal   { background: var(--teal-dim); border: 1px solid var(--teal-line); }
.quick-contact-icon-coral  { background: var(--coral-dim); border: 1px solid var(--coral-line); }
.quick-contact-icon-orange { background: var(--orange-dim); border: 1px solid var(--orange-line); }

.quick-contact-icon-teal .quick-contact-icon-glyph   { font-size: 22px; color: var(--teal); }
.quick-contact-icon-coral .quick-contact-icon-glyph  { font-size: 22px; color: var(--coral); }
.quick-contact-icon-orange .quick-contact-icon-glyph { font-size: 22px; color: var(--orange); }

.quick-contact-title {
  font-family: var(--fd);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tx-heading);
  line-height: 1.2;
}

.quick-contact-desc {
  font-size: 13px;
  color: var(--tx-muted);
  line-height: 1.65;
}

.quick-contact-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  transition: opacity 0.15s;
}

.quick-contact-link:hover {
  opacity: 0.75;
}

.quick-contact-ext-icon {
  font-size: 10px;
  margin-left: 4px;
}

/* ── MAIN CONTACT SECTION ── */
.contact-main-section {
  background: var(--bg-page);
  padding-top: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

/* ── CONTACT INFO (LEFT) ── */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-detail-card {
  background: var(--bg-white);
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-card-title {
  font-family: var(--fd);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 4px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-item-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--teal-dim);
  border: 1px solid var(--teal-line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon-glyph {
  font-size: 14px;
  color: var(--teal);
}

.contact-item-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tx-muted);
  margin-bottom: 3px;
}

.contact-item-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--tx-heading);
  line-height: 1.4;
}

.contact-item-link {
  color: var(--teal);
  text-decoration: none;
  transition: opacity 0.15s;
}

.contact-item-link:hover {
  opacity: 0.75;
}

.contact-hours-card {
  background: var(--bg-muted);
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.contact-hours-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx-muted);
  margin-bottom: 14px;
}

.contact-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--bd);
  font-size: 13px;
}

.contact-hours-row:last-child {
  border-bottom: none;
}

.contact-hours-day {
  color: var(--tx-body);
  font-weight: 500;
}

.contact-hours-time {
  color: var(--teal);
  font-weight: 600;
}

.contact-hours-closed {
  color: var(--tx-muted);
}

.social-links-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-links-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx-muted);
  margin-bottom: 4px;
}

.social-links-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-white);
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tx-body);
  text-decoration: none;
  transition: all 0.2s;
}

.social-link-btn-icon {
  font-size: 14px;
  color: var(--teal);
}

.social-link-btn:hover {
  border-color: var(--teal-line);
  color: var(--teal);
  background: var(--teal-dim);
  transform: translateY(-2px);
}

/* ── CONTACT FORM (RIGHT) ── */
.contact-form-wrap {
  background: var(--bg-white);
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 52px);
  box-shadow: var(--sh-md);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.contact-form-title {
  font-family: var(--fd);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tx-heading);
  margin-bottom: 6px;
}

.contact-form-subtitle {
  font-size: 14px;
  color: var(--tx-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ── INQUIRY TABS ── */
.inquiry-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.inquiry-tab {
  padding: 8px 16px;
  background: var(--bg-muted);
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tx-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--fb);
}

.inquiry-tab:hover {
  border-color: var(--teal-line);
  color: var(--teal);
}

.inquiry-tab.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* ── FORM FIELDS ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tx-body);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-muted);
  border: 1.5px solid var(--bd);
  border-radius: var(--radius);
  font-family: var(--fb);
  font-size: 14px;
  color: var(--tx-heading);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--teal);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px var(--teal-dim);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--tx-light);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8fa8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 24px;
}

.form-consent-checkbox {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.form-consent-label {
  font-size: 13px;
  color: var(--tx-muted);
  line-height: 1.55;
  cursor: pointer;
}

.form-consent-link {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: var(--teal-line);
}

.form-submit-btn {
  width: 100%;
  padding: 15px 28px;
  font-size: 14px;
  justify-content: center;
}

/* ── FORM SUCCESS ── */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 40px 20px;
}

.form-success.show {
  display: flex;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  background: var(--teal-dim);
  border: 1px solid var(--teal-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-success-icon-glyph {
  font-size: 26px;
  color: var(--teal);
}

.form-success-title {
  font-family: var(--fd);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tx-heading);
}

.form-success-desc {
  font-size: 14px;
  color: var(--tx-muted);
  line-height: 1.65;
  max-width: 320px;
}

/* ── SHAKE ANIMATION ── */
@keyframes form-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60%  { transform: translateX(-6px); }
  40%, 80%  { transform: translateX(6px); }
}

.form-submit-btn.shake {
  animation: form-shake 0.4s ease;
}

/* ── OFFICE LOCATIONS ── */
.locations-section {
  background: var(--bg-white);
}

.locations-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.locations-header-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--tx-muted);
  max-width: 560px;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.location-card {
  background: var(--bg-muted);
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s, background 0.2s;
}

.location-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
  border-color: var(--teal-line);
  background: var(--bg-white);
}

.location-card-dark {
  background: var(--bg-dark);
  border-color: var(--bd-dark);
}

.location-card-dark:hover {
  background: var(--bg-dark);
}

.location-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.location-flag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(108, 190, 237, 0.15);
  border: 1px solid var(--teal-line);
  color: var(--teal);
  padding: 3px 8px;
  border-radius: 2px;
  width: fit-content;
}

.location-flag-dark {
  background: rgba(108, 190, 237, 0.1);
}

.location-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  animation: location-dot-pulse 2s ease-in-out infinite;
}

@keyframes location-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108, 190, 237, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(108, 190, 237, 0); }
}

.location-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.location-type-dark {
  color: rgba(255, 255, 255, 0.4);
}

.location-title {
  font-family: var(--fd);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tx-heading);
  line-height: 1.2;
}

.location-title-dark {
  color: #fff;
}

.location-address {
  font-size: 13px;
  color: var(--tx-muted);
  line-height: 1.6;
}

.location-address-dark {
  color: rgba(255, 255, 255, 0.45);
}

.location-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 4px;
  text-decoration: none;
  transition: gap 0.2s;
}

.location-map-link:hover {
  gap: 10px;
}

.location-map-icon {
  font-size: 10px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    position: static;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .quick-contact-grid,
  .locations-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .inquiry-tabs {
    gap: 6px;
  }
}

/* ── MAP EMBED ── */
.map-embed-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  border: 1px solid var(--bd);
  margin-bottom: 40px;
}

.map-iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: none;
}
/* ── FORM VALIDATION ── */
.form-error {
  font-size: 12px;
  color: var(--coral);
  margin-top: 2px;
  display: none;
  align-items: center;
  gap: 5px;
  line-height: 1.4;
}

.form-error.show {
  display: flex;
}

.form-error-icon {
  font-size: 11px;
  flex-shrink: 0;
}

.form-input.invalid,
.form-select.invalid,
.form-textarea.invalid {
  border-color: var(--coral);
  background: rgba(230, 57, 70, 0.04);
}

.form-input.invalid:focus,
.form-select.invalid:focus,
.form-textarea.invalid:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-dim);
}

.form-consent.invalid .form-consent-label {
  color: var(--coral);
}
