/* Enquiry form pop-up (replaces Heyflow), styled like the Heyflow flow it replaces */
.ef { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.82); display: none; place-items: center; padding: 16px; }
.ef.open { display: grid; }
.ef-box { position: relative; width: min(680px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fffaf7; color: #1d1717; border-radius: 16px; padding: 36px 40px 26px; text-align: center; font-family: "Open Sans", Arial, sans-serif; }
.ef-close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: #6b6262; }

/* Stage header: 1 Event Details, 2 Availability, 3 Proposal */
.ef-stages { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 30px; padding: 0; }
.ef-stages li { position: relative; font-size: 14px; color: #a69c97; }
.ef-stages li span { display: block; font-weight: 700; margin-bottom: 2px; }
.ef-stages li + li::before { content: ""; position: absolute; top: 10px; right: calc(50% + 16px); width: calc(100% - 32px); height: 2px; background: #eadfd9; }
.ef-stages li.on, .ef-stages li.done { color: #f07a3f; font-weight: 600; }
.ef-stages li.on::before, .ef-stages li.done::before { background: #f07a3f; }

.ef-lead { font-size: 14px; color: #8a5a3f; margin: -10px 0 14px; }
.ef-title { font: 700 26px/1.3 "Merriweather", Georgia, serif; margin: 4px 0 10px; color: #1d1717; }
.ef-help { font-size: 16px; color: #4a4242; margin: 0 0 22px; }
.ef-input { display: block; width: 100%; min-height: 56px; padding: 14px 16px; border: 1px solid #dcd3cf; border-radius: 10px; font: 400 17px "Open Sans", Arial, sans-serif; color: #1d1717; background: #fff; margin: 0 0 16px; }
textarea.ef-input { min-height: 120px; resize: vertical; }
.ef-input:focus { outline: 2px solid #f48f39; outline-offset: 1px; border-color: #f48f39; }
.ef-label { display: block; text-align: left; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.ef-label .ef-input { margin-top: 6px; }

.ef-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; border: 0; border-radius: 8px; background: #f47b45; color: #fff; font: 700 17px "Open Sans", Arial, sans-serif; cursor: pointer; transition: background .15s ease; }
.ef-btn:hover { background: #e8662d; }
.ef-btn:disabled { background: #f3c4ad; cursor: default; }
.ef-skip, .ef-back { background: none; border: 0; color: #6b6262; font: 600 15px "Open Sans", Arial, sans-serif; cursor: pointer; padding: 10px; }
.ef-back { position: absolute; top: 12px; left: 14px; padding: 4px; }
.ef-skip { display: block; margin: 8px auto 0; }

.ef-options { display: grid; gap: 12px; margin: 0 0 16px; }
.ef-option { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 0 18px; border: 1px solid #dcd3cf; border-radius: 10px; background: #fff; font: 600 17px "Open Sans", Arial, sans-serif; color: #1d1717; cursor: pointer; text-align: left; }
.ef-option span { flex: 0 0 28px; height: 28px; border-radius: 6px; background: #f6eee9; color: #c4521e; font-size: 14px; display: grid; place-items: center; }
.ef-option:hover, .ef-option.on { border-color: #f48f39; background: #fff4ec; }

/* Calendar: US, Sunday first */
.ef-cal { background: #fff; border: 1px solid #eadfd9; border-radius: 14px; padding: 16px 16px 12px; margin: 0 auto 14px; max-width: 420px; box-shadow: 0 6px 20px rgba(80, 40, 20, .06); }
.ef-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ef-cal-head b { font: 700 18px "Merriweather", Georgia, serif; }
.ef-cal-nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #eadfd9; background: #fff; color: #e8662d; font-size: 24px; line-height: 1; cursor: pointer; }
.ef-cal-nav:hover:not(:disabled) { background: #fff4ec; border-color: #f48f39; }
.ef-cal-nav:disabled { color: #d9cfca; cursor: default; }
.ef-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ef-dow { font-size: 12px; font-weight: 700; color: #8a7f7a; text-transform: uppercase; padding: 6px 0; }
.ef-day { aspect-ratio: 1; width: 100%; max-width: 48px; margin: 0 auto; border: 0; border-radius: 50%; background: none; font: 600 15px "Open Sans", Arial, sans-serif; color: #1d1717; cursor: pointer; }
.ef-day:hover:not(:disabled) { background: #fff0e6; color: #c4521e; }
.ef-day.today { box-shadow: inset 0 0 0 2px #f6c3a8; }
.ef-day.on, .ef-day.on:hover:not(:disabled) { background: #f47b45; color: #fff; box-shadow: none; }
.ef-day:disabled { color: #cfc6c2; cursor: default; }
.ef-picked { min-height: 22px; font-size: 15px; color: #4a4242; margin: 0 0 14px; }
.ef-picked b { color: #1d1717; }

/* Availability check and success */
.ef-check { padding: 18px 0 12px; }
.ef-spinner { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; border: 5px solid #f6e3d8; border-top-color: #f47b45; animation: ef-spin .8s linear infinite; }
@keyframes ef-spin { to { transform: rotate(360deg); } }
.ef-tick { position: relative; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; background: #2e9e5b; animation: ef-pop .3s ease-out; }
.ef-tick::after { content: ""; position: absolute; left: 22px; top: 14px; width: 14px; height: 26px; border: solid #fff; border-width: 0 5px 5px 0; transform: rotate(45deg); }
@keyframes ef-pop { from { transform: scale(.6); } to { transform: scale(1); } }

.ef-error { color: #c0262d; font-size: 14px; margin: -6px 0 12px; text-align: left; }
.ef-fine { font-size: 13px; color: #6b6262; margin: 12px 0 0; }
.ef-draft { background: #fff7d6; border: 1px solid #e6c84a; border-radius: 8px; padding: 10px; font-size: 14px; margin: 0 0 14px; }
.ef-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Location: map above the search box, suggestions under it */
.ef-map { height: 220px; border-radius: 10px; overflow: hidden; margin: 0 0 14px; background: #eef1f3; border: 1px solid #eadfd9; }
.ef-map iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.ef-map[hidden] { display: none; }
.ef-place { position: relative; }
.ef-place .ef-input { margin-bottom: 16px; }
.ef-sugg { position: absolute; z-index: 5; top: calc(100% - 14px); left: 0; right: 0; margin: 0; padding: 6px 0; list-style: none; background: #fff; border: 1px solid #dcd3cf; border-radius: 10px; box-shadow: 0 10px 28px rgba(40, 20, 10, .14); text-align: left; }
.ef-sugg li { padding: 10px 16px; font-size: 15px; color: #1d1717; cursor: pointer; }
.ef-sugg li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: #f47b45; vertical-align: middle; }
.ef-sugg li:hover, .ef-sugg li.on { background: #fff4ec; }

/* Short form at the bottom of the page */
.qf { background: #fffaf7; color: #1d1717; border-radius: 16px; padding: 30px 28px 24px; text-align: left; font-family: "Open Sans", Arial, sans-serif; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.qf h3 { font: 700 24px/1.3 "Merriweather", Georgia, serif; margin: 0 0 6px; color: #1d1717; }
.qf > p { font-size: 15px; color: #4a4242; margin: 0 0 20px; }
.qf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.qf label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.qf .qf-wide { grid-column: 1 / -1; }
.qf input, .qf select, .qf textarea { display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 10px 14px; border: 1px solid #dcd3cf; border-radius: 8px; background: #fff; font: 400 16px "Open Sans", Arial, sans-serif; color: #1d1717; }
.qf textarea { min-height: 90px; resize: vertical; }
.qf input:focus, .qf select:focus, .qf textarea:focus { outline: 2px solid #f48f39; outline-offset: 1px; border-color: #f48f39; }
.qf .ef-place .ef-input, .qf .ef-place input { margin-bottom: 0; }
.qf .ef-sugg { top: calc(100% + 4px); right: auto; width: max-content; min-width: 100%; max-width: min(420px, calc(100vw - 48px)); }
.qf-error { color: #c0262d; font-size: 14px; margin: 0 0 10px; }
.qf-date { position: relative; }
.qf-date input { cursor: pointer; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23e8662d' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") no-repeat right 12px center; }
.qf-cal { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: 330px; max-width: calc(100vw - 48px); background: #fff; border: 1px solid #eadfd9; border-radius: 14px; padding: 8px 8px 4px; box-shadow: 0 16px 40px rgba(40, 20, 10, .2); font-weight: 400; }
.qf-cal .ef-cal { border: 0; box-shadow: none; margin: 0; padding: 8px 6px 4px; }
.qf-cal .ef-day { max-width: 40px; font-size: 14px; }
.qf-cal .ef-cal-head b { font-size: 16px; }
.qf-cal .ef-skip { margin: 0 auto 4px; }
.qf .ef-check { text-align: center; }
@media (max-width: 600px) { .qf { padding: 24px 16px 18px; } .qf-grid { grid-template-columns: 1fr; } }

/* Trusted by logos, as on the Heyflow form */
.ef-trust { margin-top: 26px; padding-top: 18px; border-top: 1px solid #f0e6e1; }
.ef-trust p { font-size: 14px; color: #4a4242; margin: 0 0 12px; }
.ef-trust div { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; }
.ef-trust img { height: 26px; width: auto; }
.ef-trust img[alt="Wells Fargo"] { height: 30px; }
.ef-trust img[alt="Boston Scientific"] { height: 30px; }

@media (max-width: 600px) {
  .ef-box { padding: 30px 16px 20px; }
  .ef-title { font-size: 21px; }
  .ef-stages li { font-size: 12px; }
  .ef-trust img { height: 22px; }
  .ef-trust img[alt="Wells Fargo"], .ef-trust img[alt="Boston Scientific"] { height: 26px; }
  .ef-cal { padding: 12px 8px 8px; }
}
