@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ===== OTP modal ===== */
.cw-otp-overlay[hidden],
.cw-otp-dialog [hidden],
.cw-otp-dialog svg[hidden] {
  display: none !important;
}

body.cw-otp-open {
  overflow: hidden;
}

.cw-otp-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(14, 22, 48, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.cw-otp-dialog,
.cw-otp-dialog * {
  box-sizing: border-box;
  font-family: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-style: normal;
  text-transform: none;
}

.cw-otp-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 440px;
  max-width: 100%;
  padding: 40px 40px 36px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(13, 26, 64, 0.18);
  text-align: center;
}

.cw-otp-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f4f8;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.cw-otp-close:hover {
  background: #e7eaf1;
}

/* icon */
.cw-otp-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e3f3fc;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cw-otp-icon-fill {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(90deg, #3152aa 0%, #03a9f4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cw-otp-dialog[data-state="error"] .cw-otp-icon {
  background: #fdecec;
}
.cw-otp-dialog[data-state="error"] .cw-otp-icon-fill {
  background: #d64545;
}
.cw-otp-dialog[data-state="success"] .cw-otp-icon,
.cw-otp-dialog[data-state="redirect"] .cw-otp-icon {
  background: #e6f7ee;
}
.cw-otp-dialog[data-state="success"] .cw-otp-icon-fill,
.cw-otp-dialog[data-state="redirect"] .cw-otp-icon-fill {
  background: #1e9e5a;
}

.cw-otp-dialog[data-state="error"] .cw-otp-icon-fill,
.cw-otp-dialog[data-state="success"] .cw-otp-icon-fill,
.cw-otp-dialog[data-state="redirect"] .cw-otp-icon-fill {
  animation: cw-otp-pop 250ms ease-out;
}
.cw-otp-check path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: cw-otp-draw 300ms ease-out 150ms forwards;
}
@keyframes cw-otp-pop {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}
@keyframes cw-otp-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* text */
.cw-otp-title {
  margin: 20px 0 0;
  padding: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #222223;
}
.cw-otp-subtitle {
  margin: 8px 0 0;
  padding: 0;
  max-width: 360px;
  font-size: 15px;
  line-height: 23px;
  font-weight: 400;
  color: #5b6170;
  overflow-wrap: anywhere;
}
.cw-otp-subtitle strong {
  font-weight: 600;
  color: #222223;
}
.cw-otp-change {
  margin: 4px 0 0;
  padding: 0;
  background: none;
  border: 0;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  color: #3152aa;
  cursor: pointer;
}
.cw-otp-change:hover {
  text-decoration: underline;
}

/* digit boxes */
/* digit boxes */
.cw-otp-dialog .cw-otp-inputs {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 362px;
  margin: 28px 0 0;
  padding: 0;
}
.cw-otp-dialog input.cw-otp-digit {
  display: block !important;
  flex: 0 1 52px !important;
  width: 52px !important;
  min-width: 0 !important;
  max-width: 52px !important;
  height: 60px !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  font-size: 24px !important;
  line-height: 32px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  color: #222223 !important;
  background: #fff !important;
  border: 1px solid #dce3ee !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  outline: 0 !important;
  caret-color: #3152aa;
  -webkit-appearance: none;
  appearance: none;
}
.cw-otp-dialog input.cw-otp-digit.is-filled {
  background: #f5f9fd !important;
  border-color: #c9d6ea !important;
}
.cw-otp-dialog input.cw-otp-digit:focus {
  background: #fff !important;
  border: 2px solid #3152aa !important;
}
.cw-otp-dialog.is-invalid input.cw-otp-digit {
  background: #fff6f6 !important;
  border: 1px solid #e57373 !important;
}
/* buttons */
.cw-otp-verify {
  width: 100%;
  max-width: 360px;
  height: 50px;
  margin-top: 28px;
  padding: 0;
  border: 0;
  border-radius: 100px;
  background: #3152aa;
  color: #fff;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
}
.cw-otp-verify:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cw-otp-resend {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  color: #5b6170;
}
.cw-otp-resend button {
  padding: 0;
  background: none;
  border: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #3152aa;
  cursor: pointer;
}
.cw-otp-resend button:disabled {
  color: #9aa3b2;
  cursor: default;
}
.cw-otp-note {
  min-height: 0;
  margin-top: 8px;
  font-size: 13px;
  line-height: 18px;
  color: #5b6170;
}
.cw-otp-note:empty {
  display: none;
}
.cw-otp-note.is-error {
  color: #d64545;
}

/* verified / redirect */
.cw-otp-redirect {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  margin-top: 28px;
}
.cw-otp-progress {
  width: 100%;
  height: 4px;
  background: #e6ecf5;
  border-radius: 2px;
  overflow: hidden;
}
.cw-otp-progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #3152aa 0%, #03a9f4 100%);
  border-radius: 2px;
}
.cw-otp-dialog[data-state="redirect"] .cw-otp-progress-fill {
  animation: cw-otp-fill 2s linear forwards;
}
@keyframes cw-otp-fill {
  to {
    width: 100%;
  }
}
.cw-otp-redirect-text {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: #5b6170;
}

@media (max-width: 480px) {
  .cw-otp-dialog {
    padding: 36px 20px 28px;
    border-radius: 20px;
  }
  .cw-otp-dialog input.cw-otp-digit {
    height: 54px !important;
    font-size: 22px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cw-otp-icon-fill,
  .cw-otp-check path,
  .cw-otp-progress-fill {
    animation: none !important;
  }
  .cw-otp-check path {
    stroke-dashoffset: 0;
  }
  .cw-otp-dialog[data-state="redirect"] .cw-otp-progress-fill {
    width: 100%;
  }
}

/* ===== Inline email status (next to the email field) ===== */
.cw-email-status {
  margin-top: 4px;
  font-size: 13px;
  line-height: 18px;
  text-align: left;
}
.cw-email-verified {
  color: #1e9e5a;
  font-weight: 600;
}
.cw-verify-link {
  padding: 0;
  background: none;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  color: #3152aa;
  cursor: pointer;
  text-decoration: underline;
}

/* ===== Field errors, form status, loading overlay ===== */
.cw-field-error {
  color: #a94442;
  font-size: 12px;
  min-height: 16px;
  margin-top: 4px;
  text-align: left;
}
.cw-field-error:empty {
  min-height: 0;
  margin-top: 0;
}

.cw-form-message {
  padding: 12px 15px;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 15px;
  display: none;
}
.cw-form-message.cw-success {
  display: block;
  background-color: #dff0d8;
  color: #3c763d;
  border: 1px solid #d6e9c6;
}
.cw-form-message.cw-error {
  display: block;
  background-color: #f2dede;
  color: #a94442;
  border: 1px solid #ebccd1;
}

.cw-form-wrapper {
  position: relative;
}
.cw-form-loading-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 10;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.cw-form-loading-overlay.cw-active {
  display: flex;
}
.cw-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(51, 122, 183, 0.2);
  border-top-color: #337ab7;
  border-radius: 50%;
  animation: cw-spin 0.7s linear infinite;
}
@keyframes cw-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Service-page form (dark background) */
.services-tab .cw-field-error {
  color: #ffb4b4;
}
.services-tab .cw-email-verified {
  color: #6ee7a0;
}
.services-tab .cw-verify-link {
  color: #7fd3fa;
}
.form-inline .iti {
  display: block;
  width: 100%;
}
.form-inline .iti input.form-control {
  width: 100%;
}

/* Service-page form layout: let the section grow, and put the button in the flow */
.cw-service-query,
.cw-service-query .hero-wrapper.services-tab,
.cw-service-query .hero-wrapper.services-tab > .container,
.cw-service-query .bottom-form {
  height: auto !important;
  min-height: 450px;
}
.cw-service-query .bottom-form {
  padding-bottom: 60px;
}
#cw-service-form .form-group {
  height: auto !important;
}
#cw-service-form .submit-btn {
  position: static !important;
  display: block;
  left: auto !important;
  margin: 8px auto 0 !important;
}

/* ===== Sticky bottom bar form (.cart_box) ===== */
.cart_box form {
  position: relative;
  align-items: flex-start; /* errors under a field must not shift the other fields */
}
.cart_box form > div {
  position: relative;
}
@media (min-width: 993px) {
  .cart_box form > div {
    width: 28%;
  }
}
.cart_box form .iti {
  width: 100%;
}
.cart_box form .iti div {
  width: auto;
}
.cart_box form .iti input.form-control {
  width: 100%;
}
.cart_box form .btn-cyber {
  align-self: flex-start;
}

/* errors sit under their field and wrap; the bar grows upward */
.cart_box .cw-field-error {
  position: static;
  width: 100% !important;
  min-height: 0;
  margin: 4px 0 0 !important;
  padding: 0 12px;
  font-size: 11px;
  line-height: 14px;
  white-space: normal;
  text-align: left;
  color: #c0392b;
}
.cart_box .cw-field-error:empty {
  display: none;
}

/* form-level message (e.g. a failed submit) takes a full row */
.cart_box .cw-form-status {
  position: static;
  flex: 0 0 100%;
  width: 100% !important;
  margin: 8px 0 0;
  padding: 6px 12px;
  font-size: 13px;
}

/* country list opened in <body> must sit above the sticky bar */
.iti--container {
  z-index: 100001;
}

/* country list opened in <body> must sit above the sticky bar */
.iti--container {
  z-index: 100001;
}

/* Footer "Let's Have A Coffee" form (dark background) */
.subscribe-block .cw-field-error {
  color: #ffb4b4;
}
.subscribe-block .cw-email-verified {
  color: #6ee7a0;
}
.subscribe-block .cw-verify-link {
  color: #7fd3fa;
}
.subscribe-block #ser-msg {
  display: block;
  margin: 4px 0 0;
}
#cw-footer-form #contactFormSubmit {
  margin-left: 0 !important;
}

/* "Coffee With Us!" popup (dark panel) */
#enquiry-box .cw-field-error {
  color: #ffb4b4;
}
#enquiry-box .cw-email-verified {
  color: #6ee7a0;
}
#enquiry-box .cw-verify-link {
  color: #7fd3fa;
}
#enquiry-box #ser1-msg {
  display: block;
  margin: 0;
}
/* The site's global "input { min-width: 21rem }" stretches checkboxes and puts them over the label text */
form[data-enquiry-form] input[type="checkbox"],
form[data-enquiry-form] input[type="radio"] {
  min-width: 0 !important;
  width: 13px;
  height: 13px;
}

/* Loader on dark backgrounds (footer, popup, service form, contact page) */
.subscribe-block .cw-form-loading-overlay,
#enquiry-box .cw-form-loading-overlay,
.services-tab .cw-form-loading-overlay {
  background: rgba(0, 0, 0, 0.25);
}
.subscribe-block .cw-spinner,
#enquiry-box .cw-spinner,
.services-tab .cw-spinner {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
}

/* Sticky bar on phones/tablets: two clean columns (name | email, then phone | Submit) */
@media (max-width: 992px) {
  .cart_box form {
    justify-content: flex-start !important;
    column-gap: 8px !important;
    row-gap: 8px;
  }
  .cart_box form > div {
    width: calc(50% - 4px) !important;
  }
  .cart_box form .btn-cyber {
    width: calc(50% - 4px) !important;
  }
}
