:root {
  --nf-cream: #fff6ea;
  --nf-page-outer: #f0dcc0;
  --nf-title: #d3121a;
  --nf-border: #c23a3a;
  --nf-border-focus: #a81d24;
  --nf-btn: #8f1a22;
  --nf-btn-hover: #76151c;
  --nf-text: #5a2c2c;
  --nf-muted: #a07878;
  --nf-link: #8f1a22;
  --nf-sheet-radius: 42px;
  --nf-field-radius: 28px;
  --nf-max: 430px;
}

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

html,
body {
  min-height: 100%;
}

body.nf-body {
  font-family: "Poppins", "Montserrat", sans-serif;
  background: var(--nf-cream);
  color: var(--nf-text);
  -webkit-font-smoothing: antialiased;
}

.nf-page {
  width: 100%;
  max-width: var(--nf-max);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--nf-cream);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.nf-hero {
  position: relative;
  width: 100%;
  line-height: 0;
}

.nf-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.nf-menu {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff8ee;
  border: 1.6px solid var(--nf-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(120, 20, 20, 0.12);
}

.nf-menu span {
  display: block;
  width: 18px;
  height: 2.2px;
  background: var(--nf-border);
  border-radius: 2px;
}

.nf-sheet {
  position: relative;
  z-index: 2;
  margin-top: -42px;
  background: var(--nf-cream);
  border-radius: var(--nf-sheet-radius) var(--nf-sheet-radius) 0 0;
  padding: 22px 20px 24px;
  flex: 1;
}

.nf-title {
  text-align: center;
  color: var(--nf-title);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 1px;
  line-height: 1.15;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.nf-form {
  width: 100%;
}

.nf-field {
  margin-bottom: 10px;
}

.nf-input {
  width: 100%;
  height: 46px;
  border: 1.6px solid var(--nf-border);
  border-radius: var(--nf-field-radius);
  background: #fffdf8;
  text-align: center;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--nf-text);
  outline: none;
  padding: 0 18px;
  appearance: none;
  -webkit-appearance: none;
}

.nf-input::placeholder {
  color: var(--nf-muted);
  font-weight: 500;
  opacity: 1;
}

.nf-input:focus {
  border-color: var(--nf-border-focus);
  box-shadow: 0 0 0 3px rgba(200, 40, 40, 0.08);
}

.nf-checks {
  margin: 12px 2px 6px;
}

.nf-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  user-select: none;
}

.nf-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nf-box {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 1px;
  border: 1.6px solid var(--nf-border);
  border-radius: 4px;
  background: #fffdf8;
  position: relative;
}

.nf-check input:checked + .nf-box {
  background: var(--nf-btn);
  border-color: var(--nf-btn);
}

.nf-check input:checked + .nf-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.nf-check-text {
  font-size: 13px;
  line-height: 1.4;
  color: #6b3b3b;
  font-weight: 500;
}

.nf-check-text a {
  color: var(--nf-link);
  text-decoration: underline;
  font-weight: 600;
}

.nf-submit {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: var(--nf-field-radius);
  background: var(--nf-btn);
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(90, 12, 16, 0.18);
}

.nf-submit:hover,
.nf-submit:focus {
  background: var(--nf-btn-hover);
  color: #fff;
}

.nf-submit:active {
  transform: translateY(1px);
  box-shadow: none;
}

.datepicker {
  z-index: 20 !important;
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.highlighted {
  background: var(--nf-btn) !important;
  background-image: none !important;
}

@media (max-width: 359px) {
  .nf-title {
    font-size: 22px;
  }

  .nf-sheet {
    padding: 24px 16px 28px;
    margin-top: -36px;
  }

  .nf-input,
  .nf-submit {
    height: 46px;
  }

  .nf-check-text {
    font-size: 12px;
  }
}



.nf-fit,
.nf-scale {
  width: 100%;
}

@media (min-width: 431px) {
  :root {
    --nf-scale: 1;
  }

  html,
  body {
    height: 100% !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body.nf-body {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    padding: 0;
    background: var(--nf-page-outer, #f0dcc0);
  }

  .nf-fit {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .nf-scale {
    width: calc(375px * var(--nf-scale));
    height: calc(812px * var(--nf-scale));
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: none;
    filter: none;
  }

  .nf-page {
    width: 375px;
    max-width: none;
    height: 812px;
    min-height: 812px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    transform: scale(var(--nf-scale));
    transform-origin: top left;
  }

  .nf-sheet {
    overflow: scroll;
    scrollbar-width: none;
  }
}
