.cfm-contact {
  --cfm-bg: #0e1621;
  --cfm-panel: #111b27;
  --cfm-panel-soft: #151f2b;
  --cfm-text: #f7f4ec;
  --cfm-muted: #9da7b4;
  --cfm-line: rgba(255, 255, 255, 0.14);
  --cfm-gold: #b59460;
  --cfm-gold-deep: #9d7c4b;
  --cfm-error: #ff7b7b;
  --cfm-success: #85d8a3;
  color: var(--cfm-text);
  background: var(--cfm-bg);
  font-family: "Montserrat", sans-serif;
  max-width: 760px;
  position: relative;
  width: 100%;
}

.cfm-contact *,
.cfm-contact *::before,
.cfm-contact *::after {
  box-sizing: border-box;
}

.cfm-icon {
  display: block;
  fill: none;
  flex: 0 0 auto;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 22px;
}

.cfm-intro {
  margin: 0;
  padding: 0 28px 22px;
}

.cfm-intro-title {
  color: var(--cfm-text);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  max-width: 560px;
}

.cfm-intro-copy {
  color: rgba(247, 244, 236, 0.68);
  font-size: 14px;
  line-height: 1.55;
  margin: 12px 0 0;
  max-width: 560px;
}

.cfm-tabs {
  border-bottom: 1px solid var(--cfm-line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 30px;
}

.cfm-tab {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--cfm-muted);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  gap: 12px;
  justify-content: center;
  min-height: 66px;
  padding: 0 16px;
  position: relative;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.cfm-tab::after {
  background: var(--cfm-gold);
  bottom: -1px;
  content: "";
  height: 3px;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  transform: scaleX(0.85);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cfm-contact .cfm-tab:focus,
.cfm-contact .cfm-tab:focus:not(:focus-visible) {
  background: transparent !important;
  background-color: transparent !important;
  border: 0;
  box-shadow: none !important;
  color: var(--cfm-text);
  outline: none;
}

.cfm-contact .cfm-tab:hover,
.cfm-contact .cfm-tab:focus-visible {
  background: rgba(231, 184, 74, 0.08) !important;
  background-color: rgba(231, 184, 74, 0.08) !important;
  border: 0;
  color: var(--cfm-text);
  outline: none;
}

.cfm-contact .cfm-tab:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(231, 184, 74, 0.32) !important;
}

.cfm-contact .cfm-tab:hover::after,
.cfm-contact .cfm-tab:focus-visible::after {
  opacity: 0.45;
  transform: scaleX(0.72);
}

.cfm-contact .cfm-tab:disabled,
.cfm-contact .cfm-tab:disabled:hover,
.cfm-contact .cfm-tab[aria-disabled="true"],
.cfm-contact .cfm-tab[aria-disabled="true"]:hover {
  background: transparent !important;
  background-color: transparent !important;
  border: 0;
  box-shadow: none !important;
  color: rgba(157, 167, 180, 0.58);
  cursor: default;
  outline: none;
  transform: none;
}

.cfm-contact .cfm-tab:disabled::after,
.cfm-contact .cfm-tab[aria-disabled="true"]::after {
  opacity: 0;
  transform: scaleX(0.85);
}

.cfm-contact .cfm-tab:active {
  transform: translateY(1px);
}

.cfm-contact .cfm-tab.is-active {
  color: var(--cfm-text);
}

.cfm-contact .cfm-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.cfm-contact .cfm-tab.is-active .cfm-icon {
  color: var(--cfm-gold);
}

.cfm-panel {
  animation: cfm-panel-enter 260ms ease both;
  min-height: var(--cfm-panel-min-height, 0);
  padding: 0 28px 24px;
}

.cfm-lead {
  color: var(--cfm-text);
  font-size: 16px;
  margin: 0 0 18px;
}

.cfm-scheduler {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(246px, 278px);
}

.cfm-calendar {
  min-width: 0;
}

.cfm-calendar-head {
  align-items: center;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  margin-bottom: 18px;
}

.cfm-calendar-head strong {
  color: var(--cfm-text);
  font-size: 15px;
  text-align: center;
}

.cfm-nav {
  align-items: center;
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 50%;
  color: var(--cfm-gold);
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  transition: background 160ms ease, color 160ms ease, opacity 160ms ease;
  width: 34px;
}

.cfm-contact .cfm-nav:focus,
.cfm-contact .cfm-nav:focus:not(:focus-visible) {
  background: rgba(255, 255, 255, 0.08) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 0;
  box-shadow: none !important;
  color: var(--cfm-gold);
  outline: none;
}

.cfm-contact .cfm-nav:disabled,
.cfm-contact .cfm-nav:disabled:hover,
.cfm-contact .cfm-nav:disabled:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 0;
  box-shadow: none !important;
  color: var(--cfm-muted);
  cursor: default;
  outline: none;
  opacity: 0.35;
}

.cfm-contact .cfm-nav:not(:disabled):hover,
.cfm-contact .cfm-nav:not(:disabled):focus-visible {
  background: rgba(231, 184, 74, 0.16) !important;
  background-color: rgba(231, 184, 74, 0.16) !important;
  border: 0;
  outline: none;
}

.cfm-weekdays,
.cfm-days {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cfm-weekdays {
  color: var(--cfm-text);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.cfm-days {
  min-height: 176px;
}

.cfm-day {
  align-items: center;
  appearance: none;
  aspect-ratio: 1;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: rgba(247, 244, 236, 0.42);
  cursor: default;
  display: inline-flex;
  font: inherit;
  font-size: 15px;
  justify-content: center;
  min-width: 0;
  padding: 0;
}

.cfm-contact .cfm-day:focus,
.cfm-contact .cfm-day:focus:not(:focus-visible) {
  border: 0;
  box-shadow: none !important;
  outline: none;
}

.cfm-contact .cfm-day:disabled,
.cfm-contact .cfm-day:disabled:hover,
.cfm-contact .cfm-day:not(.is-available):not(.is-selected):hover,
.cfm-contact .cfm-day:not(.is-available):not(.is-selected):focus {
  background: transparent !important;
  background-color: transparent !important;
  border: 0;
  box-shadow: none !important;
  color: rgba(247, 244, 236, 0.42);
  cursor: default;
  outline: none;
  transform: none;
}

.cfm-contact .cfm-day.is-available {
  background: rgba(255, 255, 255, 0.06) !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: var(--cfm-gold);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.cfm-contact .cfm-day.is-available:focus:not(:focus-visible) {
  background: rgba(255, 255, 255, 0.06) !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: var(--cfm-gold);
}

.cfm-contact .cfm-day.is-available:hover,
.cfm-contact .cfm-day.is-available:focus-visible {
  background: rgba(231, 184, 74, 0.18) !important;
  background-color: rgba(231, 184, 74, 0.18) !important;
  outline: none;
  transform: translateY(-1px);
}

.cfm-contact .cfm-day.is-selected,
.cfm-contact .cfm-day.is-selected:focus,
.cfm-contact .cfm-day.is-selected:hover {
  background: var(--cfm-gold) !important;
  background-color: var(--cfm-gold) !important;
  color: #121820;
  cursor: pointer;
  font-weight: 800;
}

.cfm-times {
  border-left: 1px solid var(--cfm-line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-left: 28px;
}

.cfm-times h3 {
  color: var(--cfm-text);
  font-size: 15px;
  font-weight: 700;
  margin: 6px 0 18px;
  white-space: nowrap;
}

.cfm-time-list {
  display: grid;
  gap: 12px;
  max-height: var(--cfm-time-list-height, 326px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-color: rgba(181, 148, 96, 0.95) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.cfm-time-list::-webkit-scrollbar {
  width: 8px;
}

.cfm-time-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
}

.cfm-time-list::-webkit-scrollbar-thumb {
  background: var(--cfm-gold-deep);
  border: 2px solid var(--cfm-bg);
  border-radius: 999px;
}

.cfm-time-list::-webkit-scrollbar-thumb:hover {
  background: var(--cfm-gold);
}

.cfm-time {
  background: transparent;
  border: 1px solid var(--cfm-gold-deep);
  border-radius: 4px;
  color: var(--cfm-gold);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  min-height: 40px;
  padding: 8px 20px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.cfm-time:hover {
  background: var(--cfm-gold);
  color: #111820;
  transform: translateY(-1px);
}

.cfm-timezone {
  align-items: flex-start;
  border-top: 1px solid var(--cfm-line);
  display: grid;
  gap: 14px;
  grid-template-columns: 24px 1fr;
  margin-top: 24px;
  padding: 20px 12px 0;
}

.cfm-timezone strong,
.cfm-timezone span {
  display: block;
}

.cfm-timezone strong {
  font-size: 14px;
  margin-bottom: 6px;
}

.cfm-timezone span {
  color: var(--cfm-text);
  font-size: 14px;
}

.cfm-request {
  margin: 0 auto;
  max-width: 540px;
  padding: 2px 0 10px;
}

.cfm-request h3,
.cfm-modal h3 {
  color: var(--cfm-text);
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.cfm-request p,
.cfm-selected {
  color: var(--cfm-muted);
  font-size: 14px;
  margin: 0 0 18px;
}

.cfm-form {
  display: grid;
  gap: 14px;
}

.cfm-form label:not(.cfm-hp) {
  display: grid;
  gap: 7px;
}

.cfm-form label span {
  color: var(--cfm-muted);
  font-size: 13px;
  font-weight: 600;
}

.cfm-form input,
.cfm-form textarea {
  background: #252d38;
  border: 1px solid transparent;
  border-radius: 0;
  color: var(--cfm-text);
  font: inherit;
  font-size: 15px;
  outline: none;
  padding: 15px 16px;
  transition: border-color 160ms ease, background 160ms ease;
  width: 100%;
}

.cfm-form textarea {
  min-height: 118px;
  resize: vertical;
}

.cfm-form input:focus,
.cfm-form textarea:focus {
  background: #2a3340;
  border-color: var(--cfm-gold);
}

.cfm-hp {
  height: 0;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  width: 0;
}

.cfm-submit {
  align-self: start;
  background: transparent;
  border: 1px solid var(--cfm-gold);
  color: var(--cfm-gold);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  min-height: 54px;
  min-width: 128px;
  padding: 0 22px;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, opacity 160ms ease;
}

.cfm-submit:hover,
.cfm-submit:focus {
  background: var(--cfm-gold);
  color: #121820;
}

.cfm-submit:disabled {
  cursor: default;
  opacity: 0.55;
}

.cfm-status {
  color: var(--cfm-muted);
  font-size: 14px;
  min-height: 20px;
}

.cfm-status.is-success {
  color: var(--cfm-success);
}

.cfm-status.is-error {
  color: var(--cfm-error);
}

.cfm-status.is-pending {
  color: var(--cfm-gold);
}

.cfm-modal-backdrop {
  align-items: center;
  animation: cfm-backdrop-enter 180ms ease both;
  background: rgba(7, 17, 28, 0.78);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: absolute;
  z-index: 20;
}

.cfm-modal-backdrop[hidden] {
  display: none;
}

.cfm-modal {
  animation: cfm-modal-enter 220ms ease both;
  background: #0b1521;
  border: 1px solid rgba(231, 184, 74, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  max-width: 430px;
  padding: 30px;
  position: relative;
  width: min(100%, 430px);
}

.cfm-modal-close {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--cfm-muted);
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 12px;
  top: 12px;
  transition: background-color 160ms ease, color 160ms ease;
  width: 34px;
}

.cfm-contact .cfm-modal-close:focus,
.cfm-contact .cfm-modal-close:focus:not(:focus-visible) {
  background: transparent !important;
  background-color: transparent !important;
  border: 0;
  box-shadow: none !important;
  color: var(--cfm-muted);
  outline: none;
}

.cfm-contact .cfm-modal-close:hover,
.cfm-contact .cfm-modal-close:focus-visible {
  background: rgba(231, 184, 74, 0.12) !important;
  background-color: rgba(231, 184, 74, 0.12) !important;
  border: 0;
  box-shadow: none !important;
  color: var(--cfm-gold);
  outline: none;
}

.cfm-empty {
  color: var(--cfm-muted);
  font-size: 14px;
  margin: 0;
}

@keyframes cfm-panel-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cfm-backdrop-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes cfm-modal-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cfm-tab,
  .cfm-tab::after,
  .cfm-nav,
  .cfm-day.is-available,
  .cfm-time,
  .cfm-form input,
  .cfm-form textarea,
  .cfm-submit {
    transition: none;
  }

  .cfm-panel,
  .cfm-modal-backdrop,
  .cfm-modal {
    animation: none;
  }
}

@media (max-width: 720px) {
  .cfm-contact {
    max-width: none;
  }

  .cfm-tabs {
    padding: 0 18px;
  }

  .cfm-panel {
    padding: 0 18px 22px;
  }

  .cfm-intro {
    padding: 0 18px 20px;
  }

  .cfm-intro-title {
    font-size: 23px;
  }

  .cfm-intro-copy {
    font-size: 13px;
    line-height: 1.55;
    margin-top: 10px;
  }

  .cfm-tab {
    font-size: 13px;
    gap: 8px;
    min-height: 58px;
    padding: 0 10px;
  }

  .cfm-scheduler {
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .cfm-times {
    border-left: 0;
    border-top: 1px solid var(--cfm-line);
    padding-left: 0;
    padding-top: 22px;
  }

  .cfm-time-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cfm-timezone {
    margin-top: 20px;
    padding-left: 0;
    padding-right: 0;
  }

  .cfm-modal-backdrop {
    align-items: flex-start;
    padding: 18px;
  }

  .cfm-modal {
    padding: 26px 20px 22px;
  }
}

@media (max-width: 430px) {
  .cfm-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cfm-tab {
    justify-content: center;
  }

  .cfm-time-list {
    grid-template-columns: 1fr;
  }

  .cfm-weekdays,
  .cfm-days {
    gap: 7px;
  }
}
