/* ─── EPEG Contact Plugin – Public CSS ─── */
:root {
  --epeg-navy:       #0A2744;
  --epeg-navy-mid:   #0E3460;
  --epeg-navy-light: #1B4F8A;
  --epeg-gold:       #C8A535;
  --epeg-gold-light: #E8C96A;
  --epeg-gold-pale:  #F5EDD0;
  --epeg-off-white:  #F8F6F1;
  --epeg-white:      #FFFFFF;
  --epeg-text-dark:  #0A2744;
  --epeg-text-mid:   #4A6080;
  --epeg-text-light: #8A9DB5;
  --epeg-border:     rgba(10,39,68,0.12);
  --epeg-border-gold:rgba(200,165,53,0.3);
  --epeg-success:    #2D7A4F;
  --epeg-error:      #B53A2F;
  --epeg-radius:     4px;
  --epeg-radius-lg:  10px;
  --epeg-transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

.epeg-contact-wrap {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  color: var(--epeg-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.epeg-contact-wrap *, .epeg-contact-wrap *::before, .epeg-contact-wrap *::after {
  box-sizing: border-box;
}

/* ─── Hero ─── */
.epeg-hero {
  background: var(--epeg-navy);
  padding: 52px 48px 44px;
  position: relative;
  overflow: hidden;
  border-radius: var(--epeg-radius-lg) var(--epeg-radius-lg) 0 0;
}
.epeg-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border: 50px solid rgba(200,165,53,0.07);
  border-radius: 50%;
  pointer-events: none;
}
.epeg-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--epeg-gold);
  margin-bottom: 14px;
}
.epeg-hero-eyebrow::before {
  content: '';
  display: block;
  width: 18px; height: 1px;
  background: var(--epeg-gold);
}
.epeg-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.epeg-hero h1 em { font-style: italic; color: var(--epeg-gold-light); }
.epeg-hero-sub {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.52);
  max-width: 480px;
  line-height: 1.7;
  margin: 0;
}
.epeg-hero-divider {
  width: 40px; height: 2px;
  background: var(--epeg-gold);
  margin: 20px 0;
}

/* ─── Layout ─── */
.epeg-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  padding: 32px 0 0;
  align-items: start;
}

/* ─── Form card ─── */
.epeg-form-card {
  background: var(--epeg-white);
  border: 1px solid var(--epeg-border);
  border-radius: var(--epeg-radius-lg);
  overflow: hidden;
}

/* Steps bar */
.epeg-steps-bar {
  display: flex;
  background: var(--epeg-navy);
}
.epeg-step-tab {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  transition: all var(--epeg-transition);
  cursor: default;
}
.epeg-step-tab.active { border-bottom-color: var(--epeg-gold); background: rgba(200,165,53,0.08); }
.epeg-step-tab.done   { border-bottom-color: rgba(200,165,53,0.3); }
.epeg-step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.35);
  transition: all var(--epeg-transition);
  flex-shrink: 0;
}
.epeg-step-tab.active .epeg-step-num { background: var(--epeg-gold); border-color: var(--epeg-gold); color: var(--epeg-navy); }
.epeg-step-tab.done   .epeg-step-num { background: rgba(200,165,53,0.2); border-color: var(--epeg-gold); color: var(--epeg-gold); }
.epeg-step-text {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  transition: color var(--epeg-transition);
}
.epeg-step-tab.active .epeg-step-text { color: var(--epeg-gold-light); }
.epeg-step-tab.done   .epeg-step-text { color: rgba(200,165,53,0.55); }

/* Form body */
.epeg-form-body { padding: 32px 32px 24px; }

.epeg-form-section { display: none; }
.epeg-form-section.visible {
  display: block;
  animation: epegFadeIn 0.26s ease forwards;
}

@keyframes epegFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.epeg-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px; font-weight: 500;
  color: var(--epeg-text-dark);
  margin: 0 0 4px;
}
.epeg-section-desc {
  font-size: 13px; color: var(--epeg-text-light);
  margin: 0 0 24px; line-height: 1.6;
}

.epeg-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.epeg-field-row.epeg-full { grid-template-columns: 1fr; }

.epeg-field { display: flex; flex-direction: column; gap: 5px; }

.epeg-field label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--epeg-text-mid);
  display: block;
}
.epeg-field label .req { color: var(--epeg-gold); margin-left: 1px; }

.epeg-contact-wrap input[type="text"],
.epeg-contact-wrap input[type="email"],
.epeg-contact-wrap input[type="tel"],
.epeg-contact-wrap select,
.epeg-contact-wrap textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--epeg-text-dark);
  background: var(--epeg-off-white);
  border: 1px solid var(--epeg-border);
  border-radius: var(--epeg-radius);
  padding: 10px 13px;
  outline: none;
  transition: border-color var(--epeg-transition), background var(--epeg-transition), box-shadow var(--epeg-transition);
  width: 100%;
  line-height: 1.5;
}
.epeg-contact-wrap input:focus,
.epeg-contact-wrap select:focus,
.epeg-contact-wrap textarea:focus {
  border-color: var(--epeg-navy-light);
  background: var(--epeg-white);
  box-shadow: 0 0 0 3px rgba(27,79,138,0.09);
}
.epeg-contact-wrap input.epeg-invalid,
.epeg-contact-wrap select.epeg-invalid,
.epeg-contact-wrap textarea.epeg-invalid {
  border-color: var(--epeg-error);
  background: #fdf4f4;
}
.epeg-contact-wrap textarea { resize: vertical; min-height: 108px; }
.epeg-contact-wrap select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 4.5L11 1' stroke='%234A6080' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}

.epeg-field-hint {
  font-size: 11px; color: var(--epeg-error);
  display: none; align-items: center; gap: 4px;
  margin-top: 2px;
}
.epeg-field-hint.visible { display: flex; }

/* ─── Chips ─── */
.epeg-chips {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.epeg-chip {
  padding: 10px 8px;
  border: 1px solid var(--epeg-border);
  border-radius: var(--epeg-radius);
  background: var(--epeg-off-white);
  font-size: 12px; font-weight: 500;
  color: var(--epeg-text-mid);
  cursor: pointer;
  text-align: center;
  transition: all var(--epeg-transition);
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  line-height: 1.3;
  user-select: none;
}
.epeg-chip:hover { border-color: var(--epeg-navy-light); background: var(--epeg-white); }
.epeg-chip.selected { border-color: var(--epeg-navy); background: var(--epeg-navy); color: #fff; }
.epeg-chip-icon { font-size: 16px; }

/* ─── Char count ─── */
.epeg-field-meta { display: flex; justify-content: space-between; align-items: center; }
.epeg-char-count { font-size: 11px; color: var(--epeg-text-light); }
.epeg-char-count.warn { color: var(--epeg-error); }

/* ─── File zone ─── */
.epeg-file-zone {
  border: 1px dashed var(--epeg-border-gold);
  border-radius: var(--epeg-radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--epeg-transition);
  background: rgba(200,165,53,0.02);
}
.epeg-file-zone:hover { border-color: var(--epeg-gold); background: var(--epeg-gold-pale); }
.epeg-file-zone input { display: none; }
.epeg-file-zone p { font-size: 13px; color: var(--epeg-text-mid); margin: 4px 0 2px; }
.epeg-file-zone span { font-size: 11px; color: var(--epeg-text-light); }
.epeg-file-name { font-size: 12px; color: var(--epeg-success); margin-top: 8px; font-weight: 600; display: none; }

/* ─── Recap ─── */
.epeg-recap-block {
  background: var(--epeg-off-white);
  border: 1px solid var(--epeg-border);
  border-radius: var(--epeg-radius);
  overflow: hidden;
  margin-bottom: 14px;
}
.epeg-recap-header {
  padding: 8px 14px;
  background: var(--epeg-navy);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--epeg-gold-light);
}
.epeg-recap-row {
  display: flex; align-items: flex-start;
  padding: 8px 14px;
  border-bottom: 1px solid var(--epeg-border);
  gap: 14px;
}
.epeg-recap-row:last-child { border-bottom: none; }
.epeg-recap-key {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--epeg-text-light);
  min-width: 100px; flex-shrink: 0;
  padding-top: 1px;
}
.epeg-recap-val {
  font-size: 13px; color: var(--epeg-text-dark);
  font-weight: 500; line-height: 1.5;
  word-break: break-word;
}

/* ─── GDPR ─── */
.epeg-gdpr {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 15px;
  background: var(--epeg-gold-pale);
  border: 1px solid var(--epeg-border-gold);
  border-radius: var(--epeg-radius);
  margin-bottom: 8px;
}
.epeg-gdpr input[type="checkbox"] {
  margin-top: 2px; width: 15px; height: 15px;
  accent-color: var(--epeg-navy);
  flex-shrink: 0; cursor: pointer;
}
.epeg-gdpr label {
  font-size: 12px; font-weight: 400;
  color: var(--epeg-text-mid);
  line-height: 1.6; cursor: pointer;
  text-transform: none; letter-spacing: 0;
}
.epeg-gdpr label a { color: var(--epeg-navy-light); }

/* ─── Form actions ─── */
.epeg-form-actions {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--epeg-border);
  margin-top: 18px;
}
.epeg-step-dots { display: flex; gap: 4px; align-items: center; }
.epeg-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--epeg-border);
  transition: all var(--epeg-transition);
}
.epeg-dot.active { background: var(--epeg-gold); width: 18px; border-radius: 3px; }
.epeg-dot.done   { background: var(--epeg-navy-light); }

.epeg-btn-ghost {
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--epeg-text-mid);
  background: none;
  border: 1px solid var(--epeg-border);
  border-radius: var(--epeg-radius);
  padding: 9px 18px;
  cursor: pointer;
  transition: all var(--epeg-transition);
}
.epeg-btn-ghost:hover { border-color: var(--epeg-navy); color: var(--epeg-navy); }

.epeg-btn-primary {
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--epeg-navy);
  background: var(--epeg-gold);
  border: none;
  border-radius: var(--epeg-radius);
  padding: 9px 24px;
  cursor: pointer;
  transition: background var(--epeg-transition);
  letter-spacing: 0.04em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 7px;
}
.epeg-btn-primary:hover { background: var(--epeg-gold-light); }
.epeg-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── Success ─── */
.epeg-success {
  display: none;
  padding: 52px 32px;
  text-align: center;
  animation: epegFadeIn 0.3s ease forwards;
}
.epeg-success.visible { display: block; }
.epeg-success-icon {
  width: 60px; height: 60px;
  background: #e8f5ee;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 26px; color: var(--epeg-success);
  animation: epegCheckPop 0.4s 0.05s both;
}
@keyframes epegCheckPop {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}
.epeg-success h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px; font-weight: 500;
  color: var(--epeg-text-dark);
  margin: 0 0 10px;
}
.epeg-success p {
  font-size: 14px; color: var(--epeg-text-mid);
  line-height: 1.7; max-width: 380px;
  margin: 0 auto 22px;
}
.epeg-success-ref {
  display: inline-block;
  padding: 7px 18px;
  background: var(--epeg-off-white);
  border: 1px solid var(--epeg-border);
  border-radius: var(--epeg-radius);
  font-size: 13px; color: var(--epeg-text-mid);
  margin-bottom: 22px;
}
.epeg-success-ref strong { color: var(--epeg-navy); }

/* ─── Spinner ─── */
.epeg-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(10,39,68,0.2);
  border-top-color: var(--epeg-navy);
  border-radius: 50%;
  animation: epegSpin 0.7s linear infinite;
  display: none;
}
@keyframes epegSpin { to { transform: rotate(360deg); } }

/* ─── Sidebar ─── */
.epeg-sidebar { display: flex; flex-direction: column; gap: 18px; }

.epeg-info-card {
  background: var(--epeg-white);
  border: 1px solid var(--epeg-border);
  border-radius: var(--epeg-radius-lg);
  overflow: hidden;
}
.epeg-card-header {
  padding: 13px 18px;
  border-bottom: 1px solid var(--epeg-border);
  display: flex; align-items: center; gap: 9px;
}
.epeg-card-ico {
  width: 30px; height: 30px;
  background: var(--epeg-navy);
  border-radius: var(--epeg-radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.epeg-card-header h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px; font-weight: 500;
  color: var(--epeg-text-dark);
  margin: 0;
}
.epeg-card-body { padding: 14px 18px; }

.epeg-contact-item {
  display: flex; align-items: flex-start;
  gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--epeg-border);
}
.epeg-contact-item:last-child { border-bottom: none; }
.epeg-contact-ico {
  width: 30px; height: 30px;
  background: var(--epeg-off-white);
  border: 1px solid var(--epeg-border);
  border-radius: var(--epeg-radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.epeg-contact-lbl {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--epeg-text-light); margin-bottom: 2px;
}
.epeg-contact-val {
  font-size: 13px; font-weight: 500;
  color: var(--epeg-text-dark); line-height: 1.4;
}
.epeg-contact-val a { color: var(--epeg-navy-light); text-decoration: none; }
.epeg-contact-val a:hover { text-decoration: underline; }

.epeg-hours-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.epeg-hours-item {
  padding: 8px 10px;
  background: var(--epeg-off-white);
  border-radius: var(--epeg-radius);
  text-align: center;
}
.epeg-hours-day {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--epeg-text-light); margin-bottom: 2px;
}
.epeg-hours-time {
  font-size: 13px; font-weight: 600;
  color: var(--epeg-text-dark);
}

/* ─── Leaflet map ─── */
#epeg-map {
  height: 220px;
  border-radius: var(--epeg-radius);
  border: 1px solid var(--epeg-border);
  margin-bottom: 12px;
  z-index: 0;
}
.leaflet-container { font-family: inherit; }

/* ─── Responsive ─── */
@media (max-width: 820px) {
  .epeg-layout { grid-template-columns: 1fr; }
  .epeg-hero { padding: 36px 24px 28px; }
  .epeg-hero h1 { font-size: 26px; }
  .epeg-form-body { padding: 22px 18px 18px; }
  .epeg-field-row { grid-template-columns: 1fr; }
  .epeg-chips { grid-template-columns: 1fr 1fr; }
  .epeg-step-text { display: none; }
}
