:root {
  --bg: #f3f7fb;
  --ink: #101418;
  --muted: #404b57;
  --line: #2b2b2b;
  --accent: #107c41;
  --accent-2: #cbd5e1;
  --badge: #111;
  --sheet: #fff;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Page */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
}

/* Sheet wrapper to mimic the artwork */
/* .sheet {
  max-width: 1100px;
  margin: 24px auto;
  background: var(--sheet); 
  background-image: url('../images/logo.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border: 2px solid #1c1c1c;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sheet::before{
    content: '';
    opacity: 0.1;
    position: absolute;
    
} */
/* Sheet container */
.sheet {
  max-width: 1450px;
  margin: 24px auto;
  background: var(--sheet);
  /* background: var(--sheet); */
  /* background: url('../images/tile.jpg'); */
  border: 2px solid #1c1c1c;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative; /* for the pseudo element */
  isolation: isolate; /* ensures ::before z-index stays behind content */
}

/* Watermark */
.sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: url("../images/logo.png"), url("../images/circle.png"); */
  background: url("../images/logo.png");
  background-position: center, center;
  /* width: 300px; */
  background-size: auto 70%, contain;
  background-repeat: no-repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
/* .sheet::after{
  content:"";
  position:absolute;
  inset:0;
  background:url('../images/back.png'), url('../images/right.png');
  background-position: right center, left center;
  background-size: contain;
  background-repeat: no-repeat;
  opacity:.1;
  pointer-events:none;
  z-index:0;
} */

.sheet::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%; /* a bit larger so corners don't crop while rotating */
  height: 140%;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: center;
  background: url("../images/circle.png");
  background-position: center, center;
  /* width: 300px; */
  background-size: auto 80%, contain;
  background-repeat: no-repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;

  animation: sheet-spin 5s linear infinite; /* adjust speed */
}
@media (prefers-reduced-motion: reduce) {
  .sheet::after {
    animation: none;
  }
}

@keyframes sheet-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
/* error styles */
.input.invalid,
.select.invalid,
.textarea.invalid {
  border-color: #e11d48 !important;
  background: #fff5f5 !important;
}
.field-error {
  color: #e11d48;
  font-size: 12px;
  margin-top: 6px;
}

/* Header */
.sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 2px solid #1c1c1c;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.brand__logo {
  /* width: 42px;
  height: 42px; */
  /* border: 3px solid #1c1c1c; */
  /* border-radius: 50%; */
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.col-9 {
  display: flex;
  align-items: center;
}
.brand__logo span {
  font-size: 12px;
}
.brand__name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.row {
  display: flex;
  width: 100%;
  margin-left: 0 !important;
  /* align-items: center;
    justify-content: space-between; */
}
.badge {
  /* border: 3px solid #1c1c1c;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  background: #f9fafb; */
  border: 2px solid #1c1c1c;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  background: #f9fafb;
  position: absolute;
  right: -4px;
  top: -4px;
  color: #000 !important;
}

/* Form */
.form {
  padding: 18px 18px 24px;
}

.notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}
.notice--ok {
  background: #e8f7ee;
  color: #106a3c;
  border: 1px solid #b5e4c9;
}
.notice--err {
  background: #fdeaea;
  color: #b42318;
  border: 1px solid #f3beb9;
}

/* Block (one row as in the artwork) */
.block {
  border: 2px solid #1c1c1c;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 18px;
}
.block + .block {
  margin-top: 20px;
}
.block__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 397px 347px 140px 1fr;
  gap: 0;
  border-bottom: 2px solid #1c1c1c;
}
.cell {
  border-right: 2px solid #1c1c1c;
  /* padding: 8px 10px; */
}
/* .col-12 {
  width: 100%;
  display: flex;
}
.col-6 {
  width: 50%;
}
.col-7 {
  width: 70%;
  display: flex;
  align-items: center;
}
.col-3 {
  width: 30%;
} */
.col-3 {
  align-items: center;
  display: flex;
  justify-content: center;
}
.cell:last-child {
  border-right: 0;
}
.cell .head {
  display: flex;
  justify-content: center;
  padding: 5px;
  align-items: center;
}
.head {
  font-size: 14px;
  font-weight: 700;
  color: #0e1726;
  margin-bottom: 4px;
  border-bottom: 2px solid #000;
  /* padding: 5px; */
  height: 45px;
}
.head1 {
  font-size: 14px;
  font-weight: 700;
  color: #0e1726;
  margin-bottom: 4px;
  /* border-bottom: 2px solid #000; */
  padding: 5px;
  /* height: 45px; */
}
.line {
  padding: 5px;
}
.input,
.select,
.textarea {
  width: 100%;
  border: 2px solid #1c1c1c;
  border-radius: 6px;
  padding: 8px 5px;
  font: inherit;
  background: #fff;
}
.select {
  background: #fff;
}
.textarea {
  min-height: 150px;
  resize: vertical;
}

/* Feedback row inside a block */
.block__feedback {
  padding: 12px 12px 15px;
  border-bottom: 0px solid #1c1c1c;
}
.line-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-top: 2px solid #1c1c1c;
}
.line-input label {
  white-space: nowrap;
  font-weight: 700;
}
.line-input .line1 {
  /* border-bottom: 2px solid #1c1c1c; */
  flex: 1;
  position: relative;
}
.line-input .line1 input {
  border: 0;
  outline: 0;
  padding: 6px 0 4px;
  width: 100%;
  background: transparent;
  font: inherit;
  border-bottom: 2px solid #000;
}

/* Actions */
.actions {
  padding: 8px 18px 22px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05);
}
.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.ghost {
  background: #eef2f6;
}
.btn:hover {
  color: #fff;
  background-color: #00ff4c !important;
  border-color: #00ff4c !important;
}

/* Helpers */
.small {
  font-size: 12px;
  color: #64748b;
}

@media screen and (min-width: 200px) and (max-width: 370px) {
  .brand__name img {
    width: 220px !important;
  }
}

@media screen and (min-width: 371px) and (max-width: 640px) {
  .brand__name img {
    width: 275px !important;
    /* height: 75px !important; */
  }
  .brand__logo img {
    width: 50px !important;
    height: 50px !important;
  }
}
/* === BASE (desktop) === */
.block__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 cols */
  /* gap: 12px; */
}

.block__grid > .cell:nth-child(3) {
  grid-column: span 2;
}

.block__grid > .cell {
  border-top: 2px solid #1c1c1c;
  border-right: 2px solid #1c1c1c;
}
.block__grid > .cell:nth-child(4n) {
  border-right: 0;
}

@media (max-width: 1024px) {
  .block__grid {
    grid-template-columns: 120px 1fr 1fr 1fr;
  }
  .block__grid > .cell:nth-child(3) {
    grid-column: span 2;
  }
  .block__grid > .cell:nth-child(4n) {
    border-right: 0;
  }
  .block__grid > .cell:nth-child(3) {
    border-right: 0;
  }
}
@media (min-width: 1280px) {
  .block__grid > .cell:nth-child(-n + 3) {
    border-top: 0px solid #1c1c1c;
  }
  .block__grid > .cell:nth-child(3) {
    border-right: 0px solid #1c1c1c;
  }
  .block__grid > .cell:nth-child(7) {
    border-right: 0px solid #1c1c1c;
  }
  .block__grid > .cell:nth-child(4) {
    border-right: 2px solid #1c1c1c;
  }
}
@media screen and (min-width: 641px) and (max-width: 1280px) {
  .block__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .block__grid > .cell:nth-child(3) {
    grid-column: span 2;
  }
  .block__grid > .cell:nth-child(4) {
    border-right: 2px solid #1c1c1c !important;
    border-top: 2px solid #1c1c1c !important;
  }
  .block__grid > .cell:nth-child(3) {
    border-right: 0px solid #1c1c1c !important;
    /* border-top: 2px solid #1c1c1c !important; */
  }
  .block__grid > .cell:nth-child(7) {
    border-right: 0px solid #1c1c1c !important;
    /* border-top: 2px solid #1c1c1c !important; */
  }

  .block__grid > .cell:nth-child(-n + 4) {
    border-top: 0;
  }
}

@media (max-width: 640px) {
  .block__grid {
    grid-template-columns: 1fr;
  }
  .block__grid > .cell {
    border-right: 0;
    border-top: 2px solid #1c1c1c;
  }
  .block__grid > .cell:first-child {
    /* border-top: 0; */
  }
  .block__grid > .cell:nth-child(3) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .brand__name {
    font-size: 22px;
  }
  .badge {
    font-size: 13px;
    position: absolute;
    top: -5px;
    z-index: 1555555;
    position: absolute;
    overflow: visible;
    right: -4px;
  }
  /* .block__grid {
    grid-template-columns: 1fr;
  } */
  .cell {
    border-right: 0;
    border-top: 2px solid #1c1c1c;
  }
  .cell:first-child {
    border-top: 0;
  }
  .head {
    font-size: 14px;
    font-weight: 700;
    color: #0e1726;
    margin-bottom: 4px;
    border-bottom: 0px solid #000;
    padding: 5px;
    height: 0;
    margin-top: 12px;
  }
  .line {
    margin-bottom: 14px;
  }

  .sheet::before {
    background-size: auto !important;
  }
  .sheet::after {
    background-size: contain !important;
  }
  .badge1 {
    margin-top: 0 !important;
  }
  /* .row{
    display: flex;
  align-items: center;
  flex-direction: column !important;

  } */
}
.image {
  width: 100px;
  border: 1px solid #000;
  /* height: 100px; */
}
.brand__name img {
  width: 430px;
  /* height: 50px; */
}

.row {
  display: flex;
  align-items: center;
  justify-content: center;
  /* flex-direction: column; */
}
.col-9 {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (max-width: 470px) {
  .row {
    flex-direction: column;
  }
  .image {
    width: 70px !important;
  }
  .block .row .col-6 {
    width: 100%;
  }
}
/* Print-friendly */
@media print {
  body {
    background: #fff;
  }
  .sheet {
    box-shadow: none;
    margin: 0;
    border-width: 3px;
  }
  .sheet__header {
    border-bottom-width: 3px;
  }
  .block,
  .cell,
  .block__grid,
  .block__feedback,
  .line-input {
    border-width: 2px;
  }
  .btn,
  .actions,
  .notice {
    display: none !important;
  }
}

.brand__logo img {
  width: 65px;
  height: 65px;
  /* border: 3px solid #1c1c1c; */
  /* border-radius: 50%; */
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.badge1 {
  margin-top: 20px;
}

/* --- Base / reset --- */
.dm-modal,
.dm-modal * {
  box-sizing: border-box;
}
.dm-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: 600 14px/1.2 "Inter", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial;
  padding: 10px 16px;
  border-radius: 10px;
}
.dm-btn--primary {
  background: #0f172a;
  color: #fff;
}
.dm-btn--primary:disabled {
  opacity: 0.5;
  cursor: default;
}

/* --- Modal container --- */
.dm-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}
.dm-modal.is-open {
  display: block;
}

/* backdrop */
.dm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(1px);
}

/* dialog */
.dm-modal__dialog {
  position: relative;
  width: min(520px, 92vw);
  margin: 7vh auto 0;
  background: #fff;
  color: #111;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  padding: 18px 18px 16px;
  animation: dmPop 0.18s ease-out;
}
@keyframes dmPop {
  from {
    transform: translateY(8px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* close X */
.dm-modal__x {
  position: absolute;
  right: 10px;
  top: 8px;
  font-size: 28px;
  line-height: 1;
  border: 0;
  background: transparent;
  color: #667085;
  cursor: pointer;
}
.dm-modal__x:hover {
  color: #111;
}

/* header */
.dm-modal__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 6px 8px;
}
.dm-modal__icon {
  font-size: 28px;
}
.dm-modal__title {
  margin: 0;
  font: 700 18px/1.2 "Inter", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial;
}

/* body */
.dm-modal__body {
  margin: 6px 6px 14px;
  color: #373a44;
  font: 400 14px/1.5 "Inter", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial;
    text-align: center;
}

/* footer */
.dm-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* variants */
.dm-success .dm-modal__header {
  color: #0a6b3e;
}
.dm-error .dm-modal__header {
  color: #a30019;
}

.dm-modal__header {
  display: flex;
  flex-direction: column;
}
.dm-modal__body {
  margin: 6px 6px 14px;
  color: #373a44;
  font: 400 14px/1.5 "Inter", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial;
}
body{
  background-image: url('../images/bg.jpg');
  background-repeat: repeat;
  background-position: center;
  background-size: contain;
}

/* Progress Bar Styles */
#progressBar {
  margin: 20px 18px 10px;
  padding: 0;
  position: relative;
}

.progress-container {
  width: 100%;
  height: 30px;
  background: #e5e7eb;
  border: 2px solid #1c1c1c;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  /* background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #10b981 100%); */
  background: #10b981;
  transition: width 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
}

.progress-fill.complete {
  background: #10b981;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 14px;
  color: #1c1c1c;
  z-index: 2;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}


/* @keyframes dm-shake {
  0%   { transform: translateX(0); }
  15%  { transform: translateX(-6px); }
  30%  { transform: translateX(6px); }
  45%  { transform: translateX(-5px); }
  60%  { transform: translateX(5px); }
  75%  { transform: translateX(-3px); }
  90%  { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

.invalid.dm-shake {
  animation: dm-shake 380ms ease;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .invalid.dm-shake { animation: none; }
} */

.dm-modal__body ul li {
  text-align: start;
  color: red;
}