:root {
  --red:      #E1242A;
  --red-dk:   #B51B20;
  --red-lt:   #FFF0F0;
  --white:    #FFFFFF;
  --gray-50:  #F8F8F8;
  --gray-100: #F0F0F0;
  --gray-200: #E2E2E2;
  --gray-400: #A0A0A0;
  --gray-600: #5C5C5C;
  --gray-700: #3D3D3D;
  --dark:     #181818;
  --green:    #16a34a;
  --ease:     .28s cubic-bezier(.4,0,.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", sans-serif;
  background: var(--gray-50);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 100;
  height: 64px; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; width: 100%; padding: 0;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo-wrap { display: flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer; }
.logo-wrap img { height: 32px; width: auto; }
.logo-sep { width: 1px; height: 22px; background: var(--gray-200); }
.logo-label { font-size: 11.5px; font-weight: 500; color: var(--gray-600); line-height: 1.3; white-space: nowrap; }

/* ── MAIN CONTENT — single page layout ── */
main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 40px 40px;
}
.page-layout {
  max-width: 1000px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: start;
}

/* ── LEFT PANEL ── */
.page-left { padding-top: 8px; }
.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red); margin-bottom: 12px;
}
.section-title {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700; color: var(--dark); line-height: 1.2; margin-bottom: 16px;
}
.section-desc {
  font-size: 15px; line-height: 1.7; color: var(--gray-600);
  max-width: 440px; margin-bottom: 36px;
}
.trust-list { display: flex; flex-direction: column; gap: 14px; }
.trust-item { display: flex; align-items: flex-start; gap: 12px; }
.trust-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); flex-shrink: 0; margin-top: 7px;
}
.trust-item p { font-size: 13.5px; line-height: 1.6; color: var(--gray-700); }
.trust-item strong { color: var(--dark); }

/* ── FORM CARD ── */
.form-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,.04), 0 24px 64px rgba(0,0,0,.08);
  padding: 40px;
}
.form-card-title {
  font-family: "Sora", sans-serif; font-size: 1.1rem;
  font-weight: 700; color: var(--dark); margin-bottom: 24px;
}
.selector-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--gray-600); }
.sel-wrap { position: relative; }
.sel-wrap select {
  width: 100%; appearance: none; background: var(--gray-50);
  border: 1.5px solid var(--gray-200); border-radius: 10px;
  padding: 11px 36px 11px 13px; font-family: "DM Sans", sans-serif;
  font-size: 14px; color: var(--dark); cursor: pointer; outline: none;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
.sel-wrap select:focus { border-color: var(--red); background: var(--white); box-shadow: 0 0 0 3px rgba(225,36,42,.1); }
.sel-wrap::after {
  content: ""; position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%); border: 5px solid transparent;
  border-top-color: var(--gray-400); pointer-events: none;
}
.field-hint { font-size: 11.5px; color: var(--gray-400); display: flex; align-items: center; gap: 4px; margin-bottom: 16px; }
.field-hint a { color: var(--red); text-decoration: none; }
.divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--gray-200); }
.divider span { font-size: 11px; color: var(--gray-400); white-space: nowrap; }

/* ── ONETRUST container ── */
.otnotice-sections > .otnotice-section > .otnotice-section-content,
.otnotice-sections > .otnotice-section > h2.otnotice-section-header {
  margin-left: 5px !important;
}
.tnc-wrap { border: 1.5px solid var(--gray-200); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.tnc-tabs { display: flex; background: var(--gray-50); border-bottom: 1.5px solid var(--gray-200); }
.tnc-tab {
  flex: 1; padding: 9px 8px; font-family: "DM Sans", sans-serif;
  font-size: 12px; font-weight: 500; color: var(--gray-400);
  background: transparent; border: none; cursor: pointer;
  transition: color var(--ease), background var(--ease);
}
.tnc-tab.is-active { color: var(--dark); font-weight: 600; background: var(--white); border-bottom: 2px solid var(--red); }
.tnc-tab:hover:not(.is-active) { color: var(--dark); }
.tnc-body { height: 200px; overflow-y: auto; overflow-x: hidden; position: relative; }
.tnc-body::-webkit-scrollbar { width: 3px; }
.tnc-body::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }
.tnc-pane { display: none; }
.tnc-pane.is-active { display: block; }

/* OneTrust DOM overrides */
.otnotice-pane .otnotice-menu,
.otnotice-pane .ot-hide,
#otnotice-notice_id .otnotice-menu { display: none !important; }
.ot-privacy-notice-language-dropdown-container,
.otnotice-pane .ot-privacy-notice-language-dropdown-container { display: none !important; }
.otnotice-pane .otnotice-content,
#otnotice-notice_id .otnotice-content { display: block !important; width: 100% !important; padding: 14px 16px !important; }
.otnotice-pane .otnotice-sections-container,
#otnotice-notice_id .otnotice-sections-container { width: 100% !important; padding: 0 !important; }
.otnotice-sections { margin: 0 !important; }
.otnotice-pane { font-size: 12.5px; line-height: 1.7; color: var(--gray-700); }
.otnotice-pane .otnotice-section { margin-bottom: 14px; }
.otnotice-pane .otnotice-section-header h2 { font-family: "Sora", sans-serif; font-size: 12.5px; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.otnotice-pane .otnotice-section-content { font-size: 12.5px; line-height: 1.7; color: var(--gray-700); }
/*.otnotice-pane .otnotice-section-content p { margin-bottom: 6px; }*/
.otnotice-content .otnotice-sections .otnotice-section-content p {margin: 0 !important; text-align: justify;}
.otnotice-pane .otnotice-section-content ul { padding-left: 16px; margin-bottom: 6px; }
.otnotice-pane .otnotice-section-content li { margin-bottom: 3px; }
.otnotice-pane a { color: var(--red); }
.otnotice-pane .otnotice-footer,
#otnotice-notice_id .otnotice-footer { display: none !important; }
@media only screen and (max-width: 767px) {
    .otnotice-sections {max-width: 330px;}
    .otnotice-sections > .otnotice-section > .otnotice-section-content {
        margin-right: 0.1rem !important;
    }
}
.otnotice-content .otnotice-sections .otnotice-section-content ol, 
.otnotice-content .otnotice-sections .otnotice-section-content ul {
    padding-inline: 0 !important;
}
.otnotice-section-content p:has(br:only-child)
 {
  display: none;
}
/* ── SCROLL GATE — overlay blocks checkbox until PN is fully read ── */
.scroll-gate-wrap { position: relative; margin-top: 14px; }
.scroll-gate-overlay {
  position: absolute; inset: 0;
  background: rgba(248,248,248,.78);
  backdrop-filter: blur(1.5px);
  border-radius: 10px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; pointer-events: none;
  transition: opacity .35s ease;
  z-index: 5;
}
.scroll-gate-overlay.hidden { opacity: 0; pointer-events: none; }
.scroll-gate-overlay svg { color: var(--gray-400); }
.scroll-gate-overlay span {
  font-size: 12px; color: var(--gray-600);
  text-align: center; line-height: 1.4; max-width: 210px;
}
/* Progress bar sits between tnc-body and the consent checkbox */
.scroll-progress-bar {
  height: 3px; background: var(--gray-200);
  border-radius: 0 0 10px 10px; overflow: hidden; margin-bottom: 0;
}
.scroll-progress-fill {
  height: 100%; width: 0%; background: var(--red);
  transition: width .12s ease; border-radius: 3px;
}

/* Loading state */
.pn-loading {
  display: flex; align-items: center; justify-content: center;
  height: 100%; gap: 10px; color: var(--gray-400); font-size: 13px; padding: 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pn-loading svg { animation: spin 1s linear infinite; }

/* T&C static */
.tnc-static { padding: 14px 16px; font-size: 12.5px; line-height: 1.7; color: var(--gray-700); }
.tnc-static h4 { font-family: "Sora", sans-serif; font-size: 12px; font-weight: 600; color: var(--dark); margin: 12px 0 3px; }
.tnc-static h4:first-child { margin-top: 0; }
.tnc-static a { color: var(--red); }

/* CONSENT */
.consent-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 16px;
  background: var(--gray-50); border: 1.5px solid var(--gray-200); border-radius: 10px;
  cursor: pointer; transition: border-color var(--ease);
}
.consent-row:hover { border-color: var(--gray-400); }
.consent-row input { display: none; }
.chk-box {
  width: 18px; height: 18px; flex-shrink: 0; border: 2px solid var(--gray-400);
  border-radius: 4px; margin-top: 1px; background: var(--white);
  display: grid; place-items: center;
  transition: background var(--ease), border-color var(--ease);
}
.chk-box svg { opacity: 0; transform: scale(.4); transition: opacity .15s, transform .15s; }
.consent-row input:checked ~ .chk-box { background: var(--red); border-color: var(--red); }
.consent-row input:checked ~ .chk-box svg { opacity: 1; transform: scale(1); }
.consent-label { font-size: 12.5px; line-height: 1.6; color: var(--gray-600); }
a .consent-label { color: var(--red); font-weight: 500; }
.consent-row a{text-decoration:none;}
/* CONSENT STATUS */
.consent-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--gray-400); margin-top: 10px; min-height: 18px;
}
.consent-status.recorded { color: var(--green); }

/* SUBMIT BUTTON */
.btn-submit {
  width: 100%; padding: 14px 20px; background: var(--red); color: #fff;
  font-family: "Sora", sans-serif; font-size: 15px; font-weight: 600;
  border: none; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease);
  position: relative; overflow: hidden;
}
.btn-submit:hover:not(:disabled) { background: var(--red-dk); box-shadow: 0 6px 24px rgba(225,36,42,.32); transform: translateY(-1px); }
.btn-submit:disabled { background: var(--gray-200); color: var(--gray-400); cursor: not-allowed; transform: none; box-shadow: none; }
.btn-submit.is-loading { pointer-events: none; }
.btn-submit .btn-spinner {
  display: none; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
.btn-submit.is-loading .btn-spinner { display: block; }
.btn-submit.is-loading .btn-text { opacity: .7; }
.btn-submit svg.arrow { transition: transform var(--ease); }
.btn-submit:hover:not(:disabled) svg.arrow { transform: translateX(3px); }

/* ── ERROR BANNER ── */
.error-banner {
  display: none; margin-top: 14px;
  padding: 14px 16px;
  background: #fff5f5;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  gap: 10px;
}
.error-banner.is-visible { display: flex; align-items: flex-start; }
.error-banner-icon { flex-shrink: 0; margin-top: 1px; }
.error-banner-body { flex: 1; }
.error-banner-title { font-size: 13px; font-weight: 600; color: #b91c1c; margin-bottom: 3px; }
.error-banner-msg { font-size: 12.5px; color: #7f1d1d; line-height: 1.5; }
.error-banner-retry {
  margin-top: 8px; font-size: 12px; font-weight: 600;
  color: var(--red); background: none; border: none;
  cursor: pointer; padding: 0; text-decoration: underline;
  text-underline-offset: 2px;
}
.error-banner-retry:hover { color: var(--red-dk); }

/* ── DEV PAYLOAD PREVIEW ── */
.payload-preview {
  display: none; margin-top: 16px;
  background: #0f1117; border-radius: 10px;
  padding: 16px; font-family: monospace; font-size: 11.5px;
  color: #8be9fd; line-height: 1.7; position: relative;
  border: 1px solid rgba(255,255,255,.08);
}
.payload-preview.is-visible { display: block; }
.payload-preview .pp-label {
  font-size: 10px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 8px;
}
.payload-preview .pp-method { color: #ff79c6; font-weight: 700; }
.payload-preview .pp-url   { color: #ff79c6; word-break: break-all; }
.payload-preview .pp-param { color: #50fa7b; }
.payload-preview .pp-val   { color: #f1fa8c; }
.payload-preview .pp-sig   { color: #bd93f9; }
.payload-preview .pp-note  { color: rgba(255,255,255,.4); font-size: 10.5px; }
.payload-preview .pp-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; color: rgba(255,255,255,.35);
  cursor: pointer; font-size: 16px; line-height: 1; transition: color var(--ease);
}
.payload-preview .pp-close:hover { color: rgba(255,255,255,.8); }
.dev-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: #ff6347; color: #fff; padding: 2px 7px; border-radius: 4px; margin-bottom: 10px;
}

/* ── FOOTER ── */
footer { background: var(--dark); padding: 28px 40px; margin-top: auto; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 22px; width: auto; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.4); }
.footer-links p { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { font-size: 12.5px; color: rgba(255,255,255,.5); text-decoration: none; transition: color var(--ease); }
.footer-links a:hover { color: rgba(255,255,255,.9); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; gap: 40px; }
  main { padding: 32px 24px 48px; }
}
@media (max-width: 600px) {
  .header-inner { padding: 0 20px; }
  .logo-sep, .logo-label { display: none; }
  main { padding: 24px 16px 40px; }
  .selector-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  footer { padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
/* Terms */
.red{
  color: var(--red);
}
ul.ul-policy li{
  margin-left: 18px;
}
.tnc-static p{
  margin-top: 10px;
  text-align: justify;
}
.tnc-static table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.tnc-static th,
.tnc-static td {
  border: 1px solid #ddd;
  padding: 8px;
  vertical-align: top;
  word-break: break-word;
}

/* Header */
.tnc-static th {
  background: #f5f5f5;
  text-align: left;
}

.tnc-static td {
  width: 50%;
}

/* Responsive */
@media (max-width: 600px) {
  .tnc-static table,
  .tnc-static tbody,
  .tnc-static tr,
  .tnc-static td,
  .tnc-static th {
    display: block;
    width: 100%;
  }

  .tnc-static tr {
    margin-bottom: 10px;
    border: 1px solid #ddd;
  }

  .tnc-static td {
    border: none;
    border-bottom: 1px solid #eee;
  }

  .tnc-static td:last-child {
    border-bottom: none;
  }

  .tnc-static th {
    display: block;
  }
}
