/* Free-estimate form (A.V Electrician Of Toronto). Self-contained: works on the one-page site
   and the full site. Navy + electric yellow, Inter, pill buttons, rounded cards. */
.ef-section { --ef-navy: #0d1b2e; --ef-yellow: #ffc21a; --ef-blue: #1f5fd6; --ef-line: #dfe5ee; --ef-slate: #4a5870; --ef-page: #f5f7fb;
  padding: 56px 0; background: var(--ef-page); font-family: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #111a2b; }
.ef-section *, .ef-section *::before, .ef-section *::after { box-sizing: border-box; }
.ef-wrap { width: min(760px, 100% - 32px); margin-inline: auto; }
.ef-card { background: #fff; border: 1px solid #e3e9f2; border-radius: 20px; padding: 26px 22px; box-shadow: 0 12px 32px rgba(8, 17, 38, .07); scroll-margin-top: 80px; }
.ef-label { margin: 0 0 8px; color: var(--ef-blue); font-size: 13px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.ef-card h2 { margin: 0; color: var(--ef-navy); font-size: clamp(26px, 6vw, 36px); line-height: 1.1; letter-spacing: -.03em; font-weight: 900; }
.ef-sub { margin: 8px 0 0; color: var(--ef-slate); }
.ef-urgent { margin: 16px 0 4px; padding: 12px 14px; border-radius: 14px; background: #fff7dd; border: 1px solid #f2dc9a; color: #5c4300; font-size: 15px; line-height: 1.45; }
.ef-urgent a { color: var(--ef-navy); font-weight: 800; white-space: nowrap; }

.ef-field { display: grid; gap: 6px; margin: 18px 0 0; border: 0; padding: 0; min-width: 0; }
.ef-field label, .ef-field legend { font-weight: 700; color: var(--ef-navy); font-size: 15px; padding: 0; }
.ef-field > label > span, .ef-field > legend > span { font-weight: 500; color: #6b7890; }
.ef-field input[type="text"], .ef-field input[type="tel"], .ef-field input[type="email"], .ef-field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--ef-line); border-radius: 14px; background: #fff;
  font: inherit; font-size: 16px; /* 16px stops iPhone zooming in */ color: #111a2b; }
.ef-field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.ef-field input:focus, .ef-field textarea:focus { outline: none; border-color: var(--ef-navy); box-shadow: 0 0 0 3px rgba(255, 194, 26, .45); }
.ef-row { display: grid; gap: 0 14px; }

/* chips (what do you need) and options (when) */
.ef-chips, .ef-when { display: flex; flex-wrap: wrap; gap: 8px; }
.ef-chips legend, .ef-when legend { width: 100%; margin-bottom: 8px; }
.ef-chip, .ef-opt { position: relative; cursor: pointer; }
.ef-chip input, .ef-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ef-field .ef-chip > span, .ef-field .ef-opt > span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 15px; border-radius: 999px;
  border: 1.5px solid var(--ef-line); background: #fff; font-size: 15px; font-weight: 650; color: var(--ef-navy); transition: background .15s, border-color .15s; }
.ef-chip:hover span, .ef-opt:hover span { border-color: #b9c4d4; }
.ef-field .ef-chip input:checked + span, .ef-field .ef-opt input:checked + span { background: var(--ef-navy); border-color: var(--ef-navy); color: #fff; }
.ef-chip input:checked + span::before { content: ""; width: 9px; height: 5px; margin-top: -3px; border-left: 2px solid var(--ef-yellow); border-bottom: 2px solid var(--ef-yellow); transform: rotate(-45deg); }
.ef-chip input:focus-visible + span, .ef-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 194, 26, .6); }

.ef-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ef-error { margin: 18px 0 0; padding: 10px 14px; border-radius: 12px; background: #fdecec; border: 1px solid #f5c6c6; color: #a12020; font-weight: 650; font-size: 15px; }

.ef-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin-top: 18px; padding: 14px 22px;
  border-radius: 999px; border: 2px solid transparent; font: inherit; font-size: 17px; font-weight: 800; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.ef-btn:active { transform: scale(.985); }
.ef-btn-main { background: var(--ef-yellow); color: var(--ef-navy); }
.ef-btn-main:hover { background: #e6aa00; }
.ef-btn-main:disabled { opacity: .7; cursor: wait; }
.ef-btn-ghost { background: #fff; color: var(--ef-navy); border-color: var(--ef-line); margin-top: 10px; }
.ef-small { margin: 12px 0 0; text-align: center; color: #6b7890; font-size: 13px; }

.ef-done, .ef-fail { text-align: center; outline: none; }
.ef-done-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #e6f6ee; color: #12804a; display: grid; place-items: center; font-size: 30px; font-weight: 900; }
.ef-done p, .ef-fail p { color: var(--ef-slate); margin: 10px 0 0; }

@media (min-width: 640px) {
  .ef-card { padding: 34px 36px; }
  .ef-row { grid-template-columns: 1fr 1fr; }
  .ef-done .ef-btn, .ef-fail .ef-btn { width: auto; display: inline-flex; margin-inline: 4px; }
}
