/* ==========================================================================
   OMC Power Private Limited - DPDP Consent Form
   Corporate, formal, responsive. Light background, high legibility.
   ========================================================================== */

:root {
  --navy:        #16355c;
  --navy-dark:   #0f2743;
  --navy-light:  #24507f;
  --accent:      #c8942a;
  --ink:         #1f2733;
  --ink-soft:    #4a5566;
  --muted:       #6b7686;
  --line:        #dfe4ea;
  --line-soft:   #edf0f4;
  --page:        #f4f6f9;
  --card:        #ffffff;
  --ok-bg:       #e9f6ee;
  --ok-ink:      #1b6b3a;
  --ok-line:     #b7e0c6;
  --err-bg:      #fdecec;
  --err-ink:     #a52121;
  --err-line:    #f2c2c2;
  --focus:       #2f6fb0;
  --radius:      6px;
  --shadow:      0 1px 3px rgba(16, 34, 56, .08), 0 8px 28px rgba(16, 34, 56, .06);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------------------------- header */
.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand { display: flex; align-items: center; gap: 14px; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 40px;
  padding: 0 10px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-name { font-size: 17px; font-weight: 600; letter-spacing: .2px; }
.brand-sub  { font-size: 12.5px; color: rgba(255, 255, 255, .78); letter-spacing: .3px; }

/* -------------------------------------------------------------- document */
.document {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 28px 0 40px;
  padding: 48px 56px 40px;
}

.doc-title {
  margin: 0 0 26px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--navy);
  color: var(--navy);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .6px;
  text-align: center;
  text-transform: uppercase;
}

.doc-meta {
  margin: 0 0 26px;
  padding: 14px 18px;
  background: #f7f9fc;
  border-left: 3px solid var(--navy-light);
  border-radius: 3px;
}

.meta-line { margin: 3px 0; font-size: 15.5px; }
.meta-line strong { color: var(--navy); }

.auto-date {
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--ink);
}

.document p { margin: 0 0 14px; text-align: justify; }
.lead { margin-bottom: 22px; }

/* ---------------------------------------------------------------- clauses */
.clause { margin: 0 0 26px; }

.clause h2 {
  display: flex;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.clause-no { min-width: 26px; color: var(--navy-light); }

.clause > p,
.clause > ul,
.clause > ol { margin-left: 36px; }

@media (max-width: 600px) {
  .clause > p, .clause > ul, .clause > ol { margin-left: 0; }
}

ul.bullets { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
ul.bullets li { margin-bottom: 6px; }
ul.bullets ul.bullets { margin-top: 6px; list-style: circle; }

ol.alpha { margin: 0 0 14px; padding-left: 24px; list-style: lower-alpha; }
ol.alpha > li { margin-bottom: 14px; }

.sub-head {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--ink);
}

.sub-para { margin: 0 !important; }

/* ------------------------------------------------------------- acceptance */
.acceptance {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 2px solid var(--line);
}

.acceptance-title {
  margin: 0 0 20px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.consent-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy-light);
  border-radius: var(--radius);
}

.consent-box:focus-within {
  border-color: var(--focus);
  border-left-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(47, 111, 176, .14);
}

#consentCheckbox {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--navy);
  cursor: pointer;
}

.consent-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  text-align: justify;
  cursor: pointer;
}

/* ---------------------------------------------------------------- fields */
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin-top: 26px;
}

.field { display: flex; flex-direction: column; }

.field label {
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .3px;
  text-transform: uppercase;
}

.req { color: #c0392b; }

.field input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #c9d1dc;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field input::placeholder { color: #a6afbd; }

.field input:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(47, 111, 176, .16);
}

.field input[readonly] {
  background: #eef1f6;
  color: var(--ink-soft);
  cursor: default;
  font-weight: 600;
  letter-spacing: .4px;
}

.field input.invalid {
  border-color: #d05a5a;
  background: #fffafa;
}

.field-hint {
  margin: 5px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.field-error {
  min-height: 17px;
  margin: 5px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--err-ink);
}

/* --------------------------------------------------------------- actions */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.btn-submit {
  min-width: 190px;
  padding: 13px 34px;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .05s ease;
}

.btn-submit:hover:not(:disabled) {
  background: var(--navy-light);
  box-shadow: 0 4px 12px rgba(22, 53, 92, .28);
}

.btn-submit:active:not(:disabled) { transform: translateY(1px); }

.btn-submit:focus-visible {
  outline: 3px solid rgba(47, 111, 176, .45);
  outline-offset: 2px;
}

.btn-submit:disabled {
  background: #dfe3e9;
  border-color: #d3d8e0;
  color: #9aa3b0;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 1;
}

.btn-submit.is-busy { cursor: progress; }

.actions-note {
  flex: 1 1 240px;
  font-size: 13px;
  color: var(--muted);
}

.actions-note.hidden { display: none; }

/* -------------------------------------------------------------- messages */
.status-message {
  margin: 20px 0 0;
  padding: 0;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
}

.status-message.success,
.status-message.error {
  padding: 14px 18px;
  border: 1px solid;
}

.status-message.success {
  background: var(--ok-bg);
  border-color: var(--ok-line);
  color: var(--ok-ink);
}

.status-message.error {
  background: var(--err-bg);
  border-color: var(--err-line);
  color: var(--err-ink);
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  padding: 22px 0 34px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 820px) {
  .document { padding: 34px 30px 30px; }
  .doc-title { font-size: 21px; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 14px; }
  .document {
    margin: 16px 0 26px;
    padding: 24px 18px 26px;
    border-radius: 4px;
  }
  .doc-title { font-size: 18.5px; letter-spacing: .3px; }
  .document p, .consent-text { text-align: left; }
  .clause h2 { font-size: 15px; }
  .field-grid { grid-template-columns: 1fr; gap: 14px; }
  .consent-box { padding: 16px 14px; }
  .actions { flex-direction: column; align-items: stretch; }
  .btn-submit { width: 100%; }
  .actions-note { text-align: center; }
  .brand-name { font-size: 15px; }
  .brand-sub { font-size: 11.5px; }
}

@media (max-width: 380px) {
  .brand-mark { min-width: 44px; height: 34px; font-size: 13px; }
}

/* ------------------------------------------------------------------ print */
@media print {
  body { background: #fff; }
  .site-header, .site-footer, .actions, .field-hint { display: none; }
  .document { box-shadow: none; border: none; margin: 0; padding: 0; }
}
