/* ============================================================
   ERFC Camvio Availability Widget
   Scoped to .erfc-camvio-widget so it won't leak into your theme.
   Matches site brand: Roboto, #32373c, #a90707.
   ============================================================ */

.erfc-camvio-widget,
.erfc-camvio-widget * { box-sizing: border-box; }

.erfc-camvio-widget {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #32373c;
  line-height: 1.55;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 10px 40px rgba(0,0,0,.06);
  padding: 40px 36px;
  position: relative;
}

.erfc-camvio-widget .erfc-loading {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}
.erfc-camvio-widget .erfc-loading::after {
  content: "";
  display: inline-block;
  margin-left: 8px;
  width: 14px; height: 14px;
  border: 2px solid #ccc;
  border-top-color: #a90707;
  border-radius: 50%;
  animation: erfcSpin .8s linear infinite;
  vertical-align: middle;
}
@keyframes erfcSpin { to { transform: rotate(360deg); } }

/* ==== Progress steps ==== */
.erfc-steps {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}
.erfc-step {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .95em;
  border: 2px solid transparent;
  transition: all .25s;
}
.erfc-step.active { background: #32373c; color: #fff; border-color: #a90707; transform: scale(1.08); }
.erfc-step.done { background: #a90707; color: #fff; }

/* ==== Typography ==== */
.erfc-camvio-widget h2 {
  font-size: 1.5em;
  font-weight: 600;
  color: #32373c;
  margin: 0 0 8px;
  text-align: center;
}
.erfc-camvio-widget .erfc-lead {
  font-size: 1em;
  color: #666;
  text-align: center;
  margin: 0 0 26px;
}

/* ==== Inputs ==== */
.erfc-camvio-widget label {
  display: block;
  font-size: .85em;
  font-weight: 600;
  color: #32373c;
  margin: 0 0 6px;
  letter-spacing: .02em;
}
.erfc-camvio-widget .erfc-field {
  margin-bottom: 18px;
}
.erfc-camvio-widget input[type="text"],
.erfc-camvio-widget input[type="email"],
.erfc-camvio-widget input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  font-family: "Roboto", sans-serif;
  font-size: 1em;
  color: #32373c;
  transition: border-color .2s;
  outline: none;
}
.erfc-camvio-widget input:focus { border-color: #32373c; }
.erfc-camvio-widget .erfc-field.invalid input { border-color: #c44; }
.erfc-camvio-widget .erfc-field .err-msg {
  color: #c44;
  font-size: .85em;
  margin-top: 4px;
  display: none;
}
.erfc-camvio-widget .erfc-field.invalid .err-msg { display: block; }

/* ==== Two-column row ==== */
.erfc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .erfc-row { grid-template-columns: 1fr; } }

/* ==== Address autocomplete ==== */
.erfc-autocomplete { position: relative; }
.erfc-autocomplete .suggestions {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border: 2px solid #e5e5e5;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
  display: none;
}
.erfc-autocomplete.open .suggestions { display: block; }
.erfc-autocomplete .suggestion {
  padding: 12px 16px;
  cursor: pointer;
  font-size: .95em;
  border-bottom: 1px solid #f0f0f0;
}
.erfc-autocomplete .suggestion:last-child { border-bottom: 0; }
.erfc-autocomplete .suggestion:hover,
.erfc-autocomplete .suggestion.highlighted { background: #f7f7f7; }
.erfc-autocomplete .suggestion .zip { color: #888; font-size: .85em; display: block; margin-top: 2px; }

/* ==== Buttons ==== */
.erfc-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: space-between;
  align-items: center;
}
.erfc-actions.center { justify-content: center; }
.erfc-camvio-widget .erfc-btn {
  display: inline-block;
  padding: 13px 28px;
  background: #32373c;
  color: #fff;
  border: 0;
  border-radius: 9999px;
  font-family: "Roboto", sans-serif;
  font-size: .98em;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .15s;
  text-decoration: none;
}
.erfc-camvio-widget .erfc-btn:hover:not(:disabled) { background: #1f2327; transform: translateY(-1px); }
.erfc-camvio-widget .erfc-btn:disabled { opacity: .5; cursor: not-allowed; }
.erfc-camvio-widget .erfc-btn-accent { background: #a90707; }
.erfc-camvio-widget .erfc-btn-accent:hover:not(:disabled) { background: #8a0505; }
.erfc-camvio-widget .erfc-btn.erfc-btn-link {
  background: #1a1a1a !important;
  color: #fff !important;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  padding: 10px 22px;
}
.erfc-camvio-widget .erfc-btn.erfc-btn-link:hover { background: #333 !important; color: #fff !important; }

/* ==== Plan cards ==== */
.erfc-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 26px 0;
}
.erfc-plan-card {
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 14px;
  padding: 22px 18px;
  cursor: pointer;
  transition: all .2s;
  text-align: left;
  font-family: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.erfc-plan-card:hover { border-color: #32373c; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.erfc-plan-card.selected { border-color: #a90707; background: #fff5f5; }
.erfc-tier-bullets {
  list-style: none;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #f0f0f0;
  text-align: left;
  font-size: .86em;
  color: #555;
  line-height: 1.4;
}
.erfc-tier-bullets li {
  padding: 4px 0 4px 18px;
  position: relative;
}
.erfc-tier-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 9px;
  height: 5px;
  border-left: 2px solid #a90707;
  border-bottom: 2px solid #a90707;
  transform: rotate(-45deg);
}
.erfc-svc-icon {
  margin-bottom: 10px;
  line-height: 1;
  font-size: 2em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.erfc-svc-icon svg { display: block; }

/* Multi-select service cards — visible checkbox in the corner */
.erfc-svc-multi {
  position: relative;
  cursor: pointer;
}
.erfc-svc-multi .erfc-svc-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  accent-color: #a90707;
  cursor: pointer;
  margin: 0;
}
.erfc-plan-card h4 { margin: 0 0 2px; font-size: 1.05em; font-weight: 600; color: #32373c; }
.erfc-plan-card .sub { color: #888; font-size: .82em; margin-bottom: 14px; min-height: 32px; }
.erfc-plan-card .speed { font-size: 1.4em; font-weight: 700; color: #32373c; line-height: 1; }
.erfc-plan-card .speed small { display: block; font-size: .55em; font-weight: 400; color: #888; margin-top: 4px; letter-spacing: .04em; }
.erfc-plan-card .price { margin-top: 14px; font-size: 1.5em; font-weight: 700; color: #32373c; }
.erfc-plan-card .price small { font-size: .5em; font-weight: 400; color: #888; }

/* ==== Status banners ==== */
.erfc-banner {
  padding: 18px 22px;
  border-radius: 12px;
  margin-bottom: 22px;
  font-size: .98em;
  line-height: 1.5;
}
.erfc-banner.ok { background: #eaf7ea; border-left: 4px solid #2a8c3a; color: #1a5a24; }
.erfc-banner.waitlist { background: #fff5ea; border-left: 4px solid #d97706; color: #6b3a00; }
.erfc-banner.error { background: #fdecec; border-left: 4px solid #c44; color: #7a1a1a; }
.erfc-banner strong { display: block; font-size: 1.05em; margin-bottom: 4px; }

/* ==== Add-ons picker ==== */
.erfc-camvio-widget .erfc-addons-list {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.erfc-camvio-widget .erfc-addon {
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 14px 18px;
  transition: border-color .2s, background .2s;
}
.erfc-camvio-widget .erfc-addon.checked { border-color: #a90707; background: #fff5f5; }
.erfc-camvio-widget .erfc-addon-main {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  margin: 0;
  font-weight: 400;
}
.erfc-camvio-widget .erfc-addon-toggle {
  width: 20px; height: 20px;
  accent-color: #a90707;
  flex-shrink: 0;
  cursor: pointer;
}
.erfc-camvio-widget .erfc-addon-meta {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.erfc-camvio-widget .erfc-addon-name {
  font-weight: 600;
  color: #32373c;
  font-size: .98em;
}
.erfc-camvio-widget .erfc-addon-price {
  color: #32373c;
  font-weight: 600;
  font-size: .95em;
  white-space: nowrap;
}
.erfc-camvio-widget .erfc-addon-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}
.erfc-camvio-widget .erfc-qty-btn {
  width: 32px; height: 32px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 50%;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  color: #32373c;
  padding: 0;
  line-height: 1;
}
.erfc-camvio-widget .erfc-qty-btn:hover { background: #f7f7f7; border-color: #32373c; }
.erfc-camvio-widget .erfc-qty-val {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
  color: #32373c;
}
.erfc-camvio-widget .erfc-qty-subtotal {
  margin-left: auto;
  color: #a90707;
  font-weight: 600;
  font-size: .92em;
}

/* ==== Add-on total summary ==== */
.erfc-camvio-widget .erfc-addon-total {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 18px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: .95em;
  color: #555;
}
.erfc-camvio-widget .erfc-addon-total strong { color: #32373c; margin-left: 4px; }
.erfc-camvio-widget .erfc-addon-grand { font-size: 1.08em; color: #32373c; font-weight: 600; }
.erfc-camvio-widget .erfc-addon-grand strong { color: #a90707; font-size: 1.15em; }

/* ==== Review table ==== */
.erfc-review {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 24px;
}
.erfc-review .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #e5e5e5; font-size: .95em; }
.erfc-review .row:last-child { border-bottom: 0; }
.erfc-review .row .lbl { color: #888; }
.erfc-review .row .val { color: #32373c; font-weight: 500; text-align: right; max-width: 60%; }

.erfc-agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 10px;
  font-size: .92em;
  color: #555;
}
.erfc-agreement input[type="checkbox"] { margin-top: 4px; flex-shrink: 0; }

/* ==== Number Porting section (voice signups) ==== */
.erfc-port-section { margin: 24px 0 12px; }
.erfc-port-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: #888;
  font-size: .78em;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
}
.erfc-port-divider::before, .erfc-port-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}
.erfc-port-info {
  background: #f7f7f7;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .92em;
  color: #555;
  margin-bottom: 14px;
  line-height: 1.5;
}
.erfc-port-info strong { color: #32373c; }

.erfc-port-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.erfc-port-choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.erfc-port-choice:hover { border-color: #32373c; }
.erfc-port-choice.selected { border-color: #a90707; background: #fff5f5; }
.erfc-port-choice input[type="radio"] {
  margin-top: 3px;
  accent-color: #a90707;
  width: 18px; height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}
.erfc-port-choice-title { font-weight: 600; color: #32373c; font-size: .96em; }
.erfc-port-choice-sub   { color: #666; font-size: .85em; margin-top: 2px; }

.erfc-port-form {
  margin-top: 16px;
  padding: 18px;
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid #eee;
}
.erfc-port-form .erfc-field { margin-bottom: 14px; }
.erfc-port-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  font-family: "Roboto", sans-serif;
  font-size: .98em;
  color: #32373c;
  resize: vertical;
  min-height: 80px;
}
.erfc-port-form textarea:focus { border-color: #32373c; outline: none; }
.erfc-port-form .req { color: #a90707; }

.erfc-port-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: .93em;
  color: #32373c;
  cursor: pointer;
  margin: 0;
  font-weight: 400;
}
.erfc-port-check input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #a90707;
  width: 16px; height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}
.erfc-port-auth {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 14px 0;
  border: 1px solid #eee;
}
.erfc-port-auth-heading {
  font-weight: 600;
  font-size: .9em;
  color: #32373c;
  margin-bottom: 8px;
}
.erfc-port-legal {
  font-size: .8em;
  color: #888;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  line-height: 1.5;
}
.erfc-port-emailinfo {
  margin-top: 14px;
  padding: 14px 18px;
  background: #e7f1fb;
  border-left: 4px solid #2B84D4;
  border-radius: 8px;
  font-size: .93em;
  color: #1a4e80;
  line-height: 1.5;
}
.erfc-port-emailinfo strong { display: block; margin-bottom: 4px; color: #1a4e80; }
.erfc-port-emailinfo a { color: #1a4e80; font-weight: 600; }

/* Select dropdown (How did you hear about us) */
.erfc-camvio-widget select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  font-family: "Roboto", sans-serif;
  font-size: 1em;
  color: #32373c;
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
}
.erfc-camvio-widget select:focus { border-color: #32373c; }

/* ==== Scheduling: calendar + timeslots ==== */
.erfc-camvio-widget .erfc-sched-label {
  font-weight: 600;
  color: #32373c;
  font-size: .92em;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.erfc-camvio-widget .erfc-sched-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(200px, 1fr);
  gap: 28px;
  margin: 22px 0;
}
@media (max-width: 720px) {
  .erfc-camvio-widget .erfc-sched-grid { grid-template-columns: 1fr; }
}

/* Calendar */
.erfc-camvio-widget .erfc-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.erfc-camvio-widget .erfc-cal-month {
  font-weight: 600;
  color: #32373c;
  font-size: 1em;
  text-align: center;
  flex: 1;
}
.erfc-camvio-widget .erfc-cal-nav {
  width: 36px; height: 36px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  color: #32373c;
  font-size: 1.1em;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.erfc-camvio-widget .erfc-cal-nav:hover:not(:disabled) { background: #f7f7f7; border-color: #32373c; }
.erfc-camvio-widget .erfc-cal-nav:disabled { opacity: .35; cursor: not-allowed; }

.erfc-camvio-widget .erfc-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}
.erfc-camvio-widget .erfc-cal-weekday {
  text-align: center;
  font-size: .75em;
  font-weight: 600;
  color: #888;
  padding: 6px 0;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.erfc-camvio-widget .erfc-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.erfc-camvio-widget .erfc-cal-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: .95em;
  color: #32373c;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: default;
  user-select: none;
}
.erfc-camvio-widget .erfc-cal-cell.empty { background: transparent; }
.erfc-camvio-widget .erfc-cal-cell.unavailable {
  color: #c8c8c8;
  background: transparent;
  cursor: not-allowed;
}
.erfc-camvio-widget .erfc-cal-cell.available {
  background: #f7f7f7;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.erfc-camvio-widget .erfc-cal-cell.available:hover {
  background: #fff;
  border-color: #32373c;
}
.erfc-camvio-widget .erfc-cal-cell.today .erfc-cal-num {
  border-bottom: 2px solid #a90707;
}
.erfc-camvio-widget .erfc-cal-cell.selected {
  background: #32373c !important;
  color: #fff !important;
  border-color: #a90707;
}
.erfc-camvio-widget .erfc-cal-cell.selected .erfc-cal-num { border-bottom-color: #fff; }
.erfc-camvio-widget .erfc-cal-cell.selected .erfc-cal-dot { background: #fff; }
.erfc-camvio-widget .erfc-cal-num { line-height: 1; padding: 2px 4px; }
.erfc-camvio-widget .erfc-cal-dot {
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #a90707;
  margin-top: 3px;
}

/* Timeslots */
.erfc-camvio-widget .erfc-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.erfc-camvio-widget .erfc-slot {
  padding: 14px 16px;
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all .15s;
  font-family: inherit;
  width: 100%;
}
.erfc-camvio-widget .erfc-slot:hover { border-color: #32373c; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,.05); }
.erfc-camvio-widget .erfc-slot.selected { border-color: #a90707; background: #fff5f5; }
.erfc-camvio-widget .erfc-slot .slot-time { font-weight: 600; color: #32373c; font-size: .98em; }
.erfc-camvio-widget .erfc-slot .slot-avail { font-size: .82em; color: #888; margin-top: 2px; }
.erfc-camvio-widget .erfc-slot.selected .slot-avail { color: #a90707; }
.erfc-camvio-widget .erfc-slot-empty {
  padding: 18px;
  background: #f7f7f7;
  border-radius: 10px;
  color: #888;
  text-align: center;
  font-size: .9em;
}

/* ==== Success ==== */
.erfc-success {
  text-align: center;
  padding: 20px 0;
}
.erfc-success .check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #2a8c3a;
  color: #fff;
  font-size: 2.6em;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.erfc-success h2 { color: #2a8c3a; }
.erfc-success .order-num {
  display: inline-block;
  background: #32373c;
  color: #fff;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: .95em;
  font-weight: 600;
  letter-spacing: .05em;
  margin: 10px 0 20px;
}

.erfc-success-actions { margin-top: 20px; }
