/* ActKod - Book a Demo popup. Self-contained; does not depend on style.css. */
html.dm-open { overflow: hidden; }
.dm-overlay, .dm-overlay *, .dm-overlay *::before, .dm-overlay *::after { box-sizing: border-box; }

.dm-overlay {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(3, 5, 15, .74);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  animation: dm-fade .18s ease-out;
}
.dm-overlay[hidden] { display: none; }

.dm-dialog {
  position: relative; width: 100%; max-width: 720px; max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 32px 36px 30px; color: #e9edf7;
  background: linear-gradient(180deg, #0d1326 0%, #080c1b 100%);
  border: 1px solid rgba(255, 255, 255, .10); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(46, 204, 113, .06);
  animation: dm-pop .22s ease-out; outline: none;
}
.dm-dialog h2 { margin: 0 0 6px; font-size: 26px; line-height: 1.2; color: #fff; font-weight: 700; }
.dm-sub { margin: 0 0 20px; color: #9aa6c1; font-size: 14.5px; line-height: 1.5; }
.dm-sub b { color: #f5c518; font-weight: 600; }

.dm-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: #cfd6e6;
  font-size: 22px; line-height: 1; cursor: pointer; transition: background .15s, color .15s;
}
.dm-close:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* steps */
.dm-steps { display: flex; gap: 10px; list-style: none; margin: 0 44px 22px 0; padding: 0; flex-wrap: wrap; }
.dm-steps[hidden] { display: none; }
.dm-steps li {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #6f7b97;
  letter-spacing: .02em;
}
.dm-steps li b {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid #34405f; font-size: 12px; color: #8b97b3;
}
.dm-steps li.is-active { color: #fff; }
.dm-steps li.is-active b { background: #f5c518; border-color: #f5c518; color: #1a1500; }
.dm-steps li.is-done b { background: rgba(245, 197, 24, .16); border-color: #f5c518; color: #f5c518; }
.dm-steps li + li::before { content: ""; width: 28px; height: 1.5px; background: #2a3555; margin-right: 2px; }

/* form */
.dm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.dm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dm-field > span { font-size: 12.5px; font-weight: 600; color: #b5c0d8; }
.dm-field > span i { color: #ff4d4f; font-style: normal; }
.dm-field input, .dm-field select {
  width: 100%; height: 48px; padding: 0 14px; font: inherit; font-size: 15px; color: #fff;
  background: #121a33; border: 1px solid #273252; border-radius: 12px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.dm-field input::placeholder { color: #5f6c8a; }
.dm-full { grid-column: 1 / -1; }
.dm-field textarea {
  width: 100%; min-height: 92px; padding: 12px 14px; font: inherit; font-size: 15px; line-height: 1.5; color: #fff; resize: vertical;
  background: #121a33; border: 1px solid #273252; border-radius: 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.dm-field textarea::placeholder { color: #5f6c8a; }
.dm-field textarea:focus { border-color: #f5c518; box-shadow: 0 0 0 3px rgba(245, 197, 24, .20); }
/* Chrome autofill paints fields white; keep them dark */
.dm-field input:-webkit-autofill, .dm-field select:-webkit-autofill, .dm-field textarea:-webkit-autofill {
  -webkit-text-fill-color: #fff; caret-color: #fff; -webkit-box-shadow: 0 0 0 1000px #121a33 inset; box-shadow: 0 0 0 1000px #121a33 inset;
  border-color: #273252; transition: background-color 9999s ease-out 0s;
}
.dm-field input:autofill, .dm-field select:autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 1000px #121a33 inset; }
.dm-field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa6c1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.dm-field select:invalid { color: #6c789a; }
.dm-field select option { color: #fff; background: #0d1326; }
.dm-field input:focus, .dm-field select:focus { border-color: #f5c518; box-shadow: 0 0 0 3px rgba(245, 197, 24, .20); }
.dm-count { font-size: 12px; color: #8a96b3; }
.dm-count.is-ok { color: #f5c518; }
.dm-field.has-err .dm-count { color: #ff8a86; }
.dm-field.has-err textarea { border-color: #f0605d; box-shadow: 0 0 0 3px rgba(240, 96, 93, .16); }
.dm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.dm-field.has-err input, .dm-field.has-err select { border-color: #f0605d; box-shadow: 0 0 0 3px rgba(240, 96, 93, .16); }

.dm-err { min-height: 20px; margin: 14px 0 0; font-size: 13.5px; color: #ff8a86; }
.dm-note { margin: 12px 0 0; font-size: 12px; color: #6f7b97; }

/* buttons */
.dm-actions { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.dm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px;
  font: inherit; font-size: 15px; font-weight: 700; border-radius: 999px; cursor: pointer; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: #e9edf7;
  transition: transform .12s, filter .15s, background .15s, opacity .15s;
}
.dm-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .07); }
.dm-btn.dm-primary {
  border-color: #f5c518; color: #1a1500;
  background: linear-gradient(180deg, #ffd83a 0%, #f5c518 100%);
  box-shadow: 0 8px 24px rgba(245, 197, 24, .28);
}
.dm-btn.dm-primary:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); background: linear-gradient(180deg, #ffd83a 0%, #f5c518 100%); }
.dm-btn:disabled { opacity: .45; cursor: not-allowed; }
.dm-form-actions { display: flex; justify-content: flex-end; margin-top: 8px; }

/* slots */
.dm-weeknav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dm-weeknav small { color: #8a96b3; font-size: 12.5px; }
.dm-mini {
  min-height: 34px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  color: #cfd6e6; background: transparent; border: 1px solid rgba(255, 255, 255, .16);
}
.dm-mini:hover:not(:disabled) { background: rgba(255, 255, 255, .08); }
.dm-mini:disabled { opacity: .35; cursor: not-allowed; }

.dm-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.dm-day {
  flex: 0 0 auto; min-width: 74px; padding: 9px 10px; text-align: center; font: inherit; cursor: pointer;
  color: #cfd6e6; background: #121a33; border: 1px solid #273252; border-radius: 14px; line-height: 1.25;
}
.dm-day small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8a96b3; }
.dm-day strong { display: block; font-size: 15px; color: #fff; }
.dm-day:hover { border-color: #3f5185; }
.dm-day.is-sel { background: rgba(245, 197, 24, .14); border-color: #f5c518; }
.dm-day.is-sel small { color: #f5c518; }

.dm-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 6px; min-height: 52px; }
.dm-time {
  height: 44px; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; color: #e9edf7;
  background: transparent; border: 1px solid #34405f; border-radius: 12px; transition: background .12s, border-color .12s;
}
.dm-time:hover { border-color: #f5c518; background: rgba(245, 197, 24, .08); }
.dm-time.is-sel { background: #f5c518; border-color: #f5c518; color: #1a1500; }
.dm-state { grid-column: 1 / -1; padding: 18px 4px; color: #9aa6c1; font-size: 14.5px; }
.dm-pick { margin: 14px 0 0; min-height: 22px; font-size: 14px; color: #f5c518; font-weight: 600; }

.dm-spin {
  display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -3px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25); border-top-color: #f5c518; animation: dm-rot .8s linear infinite;
}

/* success */
.dm-done { text-align: center; padding: 14px 6px 6px; }
.dm-tick {
  width: 68px; height: 68px; margin: 4px auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(47, 179, 106, .16); border: 2px solid #2fb36a; color: #5be09a;
}
.dm-done p { margin: 0 0 8px; color: #b5c0d8; font-size: 15px; line-height: 1.55; }
.dm-done p strong { color: #fff; }
.dm-done .dm-actions { justify-content: center; margin-top: 20px; }
.dm-ref { font-size: 12.5px !important; color: #6f7b97 !important; }

@keyframes dm-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes dm-pop { from { opacity: 0; transform: translateY(10px) scale(.985) } to { opacity: 1; transform: none } }
@keyframes dm-rot { to { transform: rotate(360deg) } }
@media (prefers-reduced-motion: reduce) { .dm-overlay, .dm-dialog { animation: none; } .dm-spin { animation-duration: 2s; } }

@media (max-width: 620px) {
  .dm-overlay { padding: 0; align-items: flex-end; }
  .dm-dialog { max-width: none; max-height: 94vh; padding: 24px 18px 22px; border-radius: 22px 22px 0 0; }
  .dm-dialog h2 { font-size: 22px; }
  .dm-grid { grid-template-columns: 1fr; gap: 12px; }
  .dm-actions .dm-btn { flex: 1 1 auto; }
  .dm-form-actions .dm-btn { width: 100%; }
}

.dm-field[hidden] { display: none; }

.dm-rc a { color: #f5c518; }
.grecaptcha-badge { visibility: hidden; } /* disclosure text is shown in the popup instead */

/* phone with calling code */
.dm-phone { display: flex; align-items: stretch; height: 48px; background: #121a33; border: 1px solid #273252; border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.dm-phone:focus-within { border-color: #f5c518; box-shadow: 0 0 0 3px rgba(245, 197, 24, .20); }
.dm-field.has-err .dm-phone { border-color: #f0605d; box-shadow: 0 0 0 3px rgba(240, 96, 93, .16); }
.dm-dial { position: relative; flex: 0 0 auto; min-width: 86px; display: flex; align-items: center; padding: 0 30px 0 14px; border-right: 1px solid #273252; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa6c1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; }
.dm-dial-v { font-size: 15px; color: #fff; white-space: nowrap; }
.dm-field .dm-dial select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; background: none; box-shadow: none; }
.dm-field .dm-phone input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; border-radius: 0 12px 12px 0; background: transparent; box-shadow: none; }
.dm-field .dm-phone input:focus { border: 0; box-shadow: none; }

/* consent */
.dm-consent { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; font-size: 13.5px; line-height: 1.5; color: #b5c0d8; cursor: pointer; }
.dm-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #f5c518; cursor: pointer; }
.dm-consent a { color: #f5c518; text-decoration: underline; }
.dm-consent i { color: #ff4d4f; font-style: normal; }
