/* ============================================================
   CONTACT SECTION (contact-section.js), on every page including the
   homepage. Deep green with the three ways in on the left and a bright
   ivory form card on the right, so the eye lands on the form. Class
   names are prefixed elc- so nothing collides with a page's own styles.
   ============================================================ */
.elc {
  --elc-ease: cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(5rem, 10vw, 8.5rem) 6%;
  background:
    radial-gradient(760px 520px at 0% 0%, rgba(229, 198, 151, 0.12), transparent 65%),
    radial-gradient(700px 600px at 100% 100%, rgba(47, 111, 79, 0.35), transparent 65%),
    linear-gradient(160deg, #10271A 0%, #0C1E14 55%, #0A1911 100%);
  color: #FAF9F6; font-family: 'Montserrat', sans-serif; text-align: left;
}
.elc::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(229, 198, 151, 0.16) 1px, transparent 1.4px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 15% 10%, #000 0%, transparent 60%); mask-image: radial-gradient(ellipse at 15% 10%, #000 0%, transparent 60%);
}
.elc-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; max-width: 1200px; margin: 0 auto; }

/* Left: message and the three ways in */
.elc-kicker { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-light, #E5C697); }
.elc-kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.elc-heading { font-family: 'Playfair Display', serif; font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.1; color: #FBF8F2; margin: 1rem 0 1.1rem; }
.elc-heading em { color: var(--gold-light, #E5C697); }
.elc-lede { font-size: 1rem; line-height: 1.75; color: rgba(250, 249, 246, 0.72); margin: 0 0 2rem; max-width: 470px; }

.elc-ways { display: grid; gap: 0.7rem; max-width: 470px; }
.elc-way {
  display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 1rem; padding: 0.85rem 1rem 0.85rem 0.85rem;
  border-radius: 16px; text-decoration: none; color: inherit;
  background: rgba(250, 249, 246, 0.05); border: 1px solid rgba(229, 198, 151, 0.18);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.45s var(--elc-ease);
}
.elc-way:hover { background: rgba(250, 249, 246, 0.1); border-color: rgba(229, 198, 151, 0.5); transform: translateX(4px); }
.elc-way:focus-visible { outline: 2px solid var(--gold-light, #E5C697); outline-offset: 3px; }
.elc-way-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(229, 198, 151, 0.14); color: var(--gold-light, #E5C697); }
.elc-way:first-child .elc-way-icon { background: var(--gold-light, #E5C697); color: #0C1E14; }
.elc-way-icon svg { width: 21px; height: 21px; }
.elc-way-text strong { display: block; font-size: 0.95rem; font-weight: 600; color: #FBF8F2; }
.elc-way-text small { display: block; font-size: 0.8rem; color: rgba(250, 249, 246, 0.6); margin-top: 0.15rem; overflow-wrap: anywhere; }
.elc-way-arrow { color: rgba(229, 198, 151, 0.7); transition: transform 0.45s var(--elc-ease); }
.elc-way-arrow svg { width: 18px; height: 18px; display: block; }
.elc-way:hover .elc-way-arrow { transform: translateX(4px); }

.elc-founder { display: flex; align-items: center; gap: 0.9rem; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(229, 198, 151, 0.16); max-width: 470px; }
.elc-founder img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 1px solid rgba(229, 198, 151, 0.45); flex: none; }
.elc-founder p { margin: 0; }
.elc-founder strong { display: block; font-family: 'Playfair Display', serif; font-weight: 400; font-size: 1.05rem; color: #FBF8F2; }
.elc-founder span { display: block; font-size: 0.78rem; color: rgba(250, 249, 246, 0.6); margin-top: 0.1rem; }
.elc-hours { margin: 1rem 0 0; font-size: 0.78rem; color: rgba(250, 249, 246, 0.5); }

/* Right: the form card */
.elc-card {
  position: relative; background: #FAF9F6; color: #233027; border-radius: 24px;
  padding: clamp(1.6rem, 3.4vw, 2.6rem); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.6);
}
.elc-card::before { content: ''; position: absolute; left: 12%; right: 12%; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--gold-dark, #917551), transparent); }
.elc-form { display: flex; flex-direction: column; gap: 1.15rem; margin: 0; }
.elc-form[hidden], .elc-done[hidden] { display: none; }
.elc-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.elc-card-head h3 { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 1.6rem; color: #0C1E14; margin: 0; }
.elc-card-head span { font-size: 0.78rem; color: #5A6D60; }

.elc-topics { border: 0; margin: 0; padding: 0; min-width: 0; }
.elc-topics legend, .elc-field label { display: block; padding: 0; margin-bottom: 0.5rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #5A6D60; }
.elc-topics small, .elc-field small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.elc-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.elc-chip { position: relative; cursor: pointer; }
.elc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.elc-chip span {
  display: inline-block; padding: 0.5rem 0.85rem; border-radius: 999px; font-size: 0.8rem; font-weight: 500; color: #233027;
  background: #fff; border: 1px solid rgba(145, 117, 81, 0.28);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.elc-chip:hover span { border-color: #917551; }
.elc-chip input:checked + span { background: #0C1E14; border-color: #0C1E14; color: var(--gold-light, #E5C697); }
.elc-chip input:focus-visible + span { outline: 2px solid #917551; outline-offset: 2px; }

.elc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.elc-input {
  width: 100%; box-sizing: border-box; margin: 0; padding: 0.85rem 0.95rem; border-radius: 12px;
  border: 1px solid rgba(145, 117, 81, 0.3); background: #fff; color: #0C1E14;
  font-family: 'Montserrat', sans-serif; font-size: 0.92rem; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.elc-input::placeholder { color: rgba(35, 48, 39, 0.4); }
.elc-input:focus { outline: none; border-color: #917551; box-shadow: 0 0 0 3px rgba(145, 117, 81, 0.16); }
.elc-input[aria-invalid="true"] { border-color: #7C4048; box-shadow: 0 0 0 3px rgba(124, 64, 72, 0.12); }
textarea.elc-input { resize: vertical; min-height: 96px; }

.elc-error { display: none; margin: 0; padding: 0.7rem 0.9rem; border-radius: 10px; background: rgba(124, 64, 72, 0.08); color: #7C4048; font-size: 0.85rem; line-height: 1.5; }
.elc-error.is-on { display: block; }
.elc-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; width: 100%; min-height: 54px; padding: 0 1.6rem;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: #0C1E14; color: var(--gold-light, #E5C697);
  font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 16px 30px -16px rgba(12, 30, 20, 0.7); transition: transform 0.35s var(--elc-ease), box-shadow 0.35s ease, opacity 0.2s ease;
}
.elc-submit svg { width: 16px; height: 16px; transition: transform 0.4s var(--elc-ease); }
.elc-submit:hover { transform: translateY(-2px); box-shadow: 0 22px 38px -16px rgba(12, 30, 20, 0.75); }
.elc-submit:hover svg { transform: translateX(4px); }
.elc-submit:disabled { opacity: 0.65; cursor: wait; transform: none; }
.elc-submit:focus-visible { outline: 2px solid #917551; outline-offset: 3px; }
.elc-fine { margin: -0.2rem 0 0; text-align: center; font-size: 0.75rem; color: #5A6D60; }
.elc-fine a { color: #7A5F3D; }

/* Thank-you screen */
.elc-done { text-align: center; padding: 1.4rem 0.4rem 0.6rem; outline: none; }
.elc-done-check { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1.1rem; border-radius: 50%; background: #0C1E14; color: var(--gold-light, #E5C697); animation: elc-pop 0.6s var(--elc-ease); }
.elc-done-check svg { width: 28px; height: 28px; }
@keyframes elc-pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.elc-done h3 { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 1.8rem; color: #0C1E14; margin: 0 0 0.7rem; }
.elc-done p { margin: 0 auto 1.6rem; max-width: 420px; font-size: 0.92rem; line-height: 1.7; color: #5A6D60; }
.elc-done p strong { color: #0C1E14; }
.elc-done-actions { display: grid; gap: 0.6rem; max-width: 340px; margin: 0 auto; }
.elc-link { background: none; border: 0; padding: 0.6rem; cursor: pointer; font-family: 'Montserrat', sans-serif; font-size: 0.82rem; font-weight: 600; color: #7A5F3D; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .elc-grid { grid-template-columns: 1fr; }
  .elc-lede, .elc-ways, .elc-founder { max-width: none; }
}
@media (max-width: 600px) {
  .elc { padding: 4.5rem 5% 4rem; }
  .elc-row { grid-template-columns: 1fr; }
  .elc-card { border-radius: 20px; }
  .elc-card { padding: 1.4rem 1.1rem 1.5rem; }
  .elc-chips { gap: 0.35rem; }
  .elc-chip span { padding: 0.42rem 0.68rem; font-size: 0.74rem; }
  /* iOS zooms the page into inputs under 16px. */
  .elc-input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .elc-way, .elc-submit, .elc-submit svg, .elc-way-arrow, .elc-done-check { transition: none; animation: none; }
}
