/* OctoThink UAE — Charter LP (white / green) */
html, body, main {
  margin: 0;
  padding: 0;
}

/* Override any theme gradient injected by header.php */
body {
  background: #ffffff !important;
  background-image: none !important;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1d2433;
  background: #ffffff;
}

/* ── Layout wrapper ── */
.lp-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 16px 20px 32px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* ── Header ── */
.lp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  margin-bottom: 4px;
}

.lp-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 19px;
  color: #2b3445;
  line-height: 1;
  text-decoration: none;
}

.lp-logo-mark {
  height: 30px;
  width: auto;
  display: block;
  border-radius: 7px;
  border: 1px solid #e3e6ec;
}

/* ── Language switcher ── */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-switcher-btn {
  border: 1px solid #d6dbe3;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  color: #3a4252;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-switcher-btn:hover {
  background: #f5f7fa;
}

.lang-switcher-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 110px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  overflow: hidden;
}

.lang-switcher:hover .lang-switcher-dropdown {
  display: block;
}

.lang-switcher-dropdown a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: #1d2433;
  text-decoration: none;
  white-space: nowrap;
}

.lang-switcher-dropdown a:hover {
  background: #f0f4ff;
  color: #1fb85a;
}

/* ── Hero visual ── */
.hero-visual {
  width: 190px;
  margin: 28px auto 0;
}

.hero-visual img,
.hero-visual svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Headline + sub-label ── */
.lp-headline {
  text-align: center;
  font-weight: 700;
  font-size: 23px;
  color: #1d2433;
  margin: 20px 0 0;
  line-height: 1.25;
}

.form-ask {
  text-align: center;
  font-size: 15px;
  color: #4a5263;
  margin: 8px 0 0;
  font-weight: 400;
}

/* ── Form section ── */
.form-section {
  width: 100%;
  margin-top: 28px;
}

.modern-card {
  position: relative;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  margin: 0;
  border: none;
}

/* ── Phone / PIN input group ── */
.input-group {
  display: flex;
  background: #fff;
  border: 1.5px solid #cfd5de;
  border-radius: 12px;
  overflow: hidden;
  height: 54px;
  align-items: center;
}

.input-group:focus-within {
  border-color: #1fb85a;
}

.input-group span,
#dailcode {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  padding: 0 14px;
  height: 100%;
  line-height: 1;
  font-weight: 600;
  color: #1d2433;
  font-size: 16px;
  text-align: center;
  border-radius: 0;
  border-right: 1px solid #e1e5eb;
  flex-shrink: 0;
}

.form-control,
.phone-input {
  border: none !important;
  border-radius: 0 !important;
  padding: 0 14px;
  font-size: 17px;
  height: 100%;
  color: #1d2433;
  box-shadow: none !important;
  background: #fff;
  flex: 1;
  min-width: 0;
}

.form-control:focus,
.phone-input:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none;
}

.form-control::placeholder {
  color: #9aa3b2;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 12px;
  text-decoration: none;
}

/* Subscribe button — grey by default, green when ready */
.theme-btn,
.btn.theme-btn {
  background: #c9cfd8 !important;
  color: #fff !important;
  pointer-events: none;
  cursor: default;
}

.theme-btn.is-ready,
.btn.theme-btn.is-ready {
  background: #1fb85a !important;
  color: #fff !important;
  pointer-events: auto;
  cursor: pointer;
}

.theme-btn.is-ready:hover,
.btn.theme-btn.is-ready:hover {
  background: #18a04e !important;
}

/* Resend button */
.btn-secondary {
  background: #e8eaed !important;
  color: #6b7280 !important;
  pointer-events: none;
  cursor: default;
  font-size: 15px;
  font-weight: 500;
}

.btn-secondary.active-resend {
  background: #f0fdf4 !important;
  color: #1fb85a !important;
  border: 1.5px solid #1fb85a !important;
  pointer-events: auto;
  cursor: pointer;
}

/* Spinner inside button */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Response messages ── */
#responseMessage,
#pinResponseMessage {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 8px;
}

.error {
  color: #dc3545;
  background: #fff5f5;
  border: 1px solid #fecaca;
}

.success-msg {
  color: #1fb85a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

/* ── Price line ── */
.price-point {
  text-align: center;
  font-size: 13px;
  color: #3a4252;
  margin-top: 12px;
  line-height: 1.45;
  background: transparent;
  font-weight: 400;
}

.price-point strong,
.price-point b {
  font-weight: 600;
}

/* ── PIN note ── */
.pin-note {
  text-align: center;
  font-size: 12px;
  color: #8a93a3;
  margin-top: 6px;
  line-height: 1.4;
}

/* ── Exit link ── */
.exit-link {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #8a93a3;
  text-decoration: underline;
  margin-top: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.exit-link:hover {
  color: #4a5263;
}

/* ── Countdown ── */
#resendCountdown {
  text-align: center;
  font-size: 12px;
  color: #8a93a3;
  margin-top: 6px;
}

/* ── Terms block ── */
.legal-block {
  margin-top: 32px;
}

.legal-text p,
.legal-text {
  font-size: 9.5px;
  color: #a3abb8;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 0;
}

.legal-text a {
  color: #a3abb8;
  text-decoration: underline;
}

/* ── Utility ── */
.d-none {
  display: none !important;
}

.w-100 {
  width: 100%;
}

.text-center {
  text-align: center;
}

/* ── Autofill highlight ── */
.autofilled {
  background-color: #f0fdf4 !important;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .lp-wrap {
    padding: 12px 16px 28px;
  }

  .hero-visual {
    width: 160px;
  }

  .lp-headline {
    font-size: 21px;
  }

  .btn {
    font-size: 17px;
  }

  input[type="tel"],
  input[type="text"] {
    font-size: 16px !important; /* prevent iOS zoom */
  }
}
