/* Custom Font Face */
@font-face {
  font-family: "Satoshi";
  src: url("/fonts/Satoshi/Satoshi-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

/* === Base / Reset Styles === */
html {
  font-family:
    "Satoshi",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  padding: 0;
  margin: 0;
  background-color: #fdfce5;
  background: linear-gradient(to bottom, #fffef2, #fdfce5, #fdfce5);
  font-size: 24px;
  font-weight: 500;
  min-height: 100vh;
}

img {
  display: block;
  margin: 0 auto;
}

.frimerkeSvg {
  width: 358px;
}

#venteliste {
  display: none;
}

#venteliste img {
  display: inline-block;
}

.bottom-image {
  width: 100%;
  height: 100px; /* adjust as needed */
  background-color: #fffef1;
  background-image: url(/svg/julefabrikken/granbar-footer.svg);
  background-repeat: repeat-x;
  background-position: bottom center;
}

/* === Typography === */
h1 {
  /* font-family: "Alex Brush", cursive; */
  font-family: "adorn-smooth-pomander", sans-serif;
  font-weight: 400;
  font-style: bold;
  font-size: 160px;
  line-height: 160px;
  margin: 30px 0 -15px 0;
}

h2 {
  /* font-family: "Alex Brush", cursive; */
  font-family: "sheila", sans-serif;
  font-weight: 400;
  font-style: bold;
  font-size: 64px;
  line-height: 70px;
  margin: 10px 0;
  font-weight: 600;
}

/* === Layout Wrappers === */
.page-wrapper {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

.content-margin {
  margin: 0 20px;
}

.content-section {
  max-width: 1323px;
  margin: 175px auto;
  position: relative;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 30px;
  margin: 100px 0;
}

.centerContainer {
  display: flex;
  justify-content: center; /* horizontal centering */
  align-items: center; /* vertical centering */
}

.centerContainer img {
  max-width: 100%;
  height: auto;
}

/* === Header / Hero Section === */
header {
  font-size: 36px;
  text-align: center;
  width: 100%;
  max-width: 1618px;
  font-weight: normal;
  display: block;
  box-sizing: border-box;
  /* background-image: url(/svg/julefabrikken/borderBg.svg);
  background-position: center center;
  background-size: 100; */
  /* padding: 45px; */
  margin: 70px auto;

  border: 20px solid transparent;
  border-image: repeating-linear-gradient(
      135deg,
      #088740 0px,
      #088740 25px,
      #fdfce5 25px,
      #fdfce5 40px,
      #b72126 40px,
      #b72126 65px,
      #fdfce5 65px,
      #fdfce5 80px
    )
    20;

  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

.header-wrapper {
  background-color: #fdfce5;
  background-image: url(/svg/julefabrikken/old_paper.svg);
  background-size: cover;
  border: 1px solid transparent;
  padding: 55px 20px;
}

.nisselue {
  margin: 10px auto 35px auto;
}

/* === Buttons === */
.btn-wraper {
  border: 1px solid #000;
  border-radius: 8px;
  display: block;
  width: 173px;
  padding: 4px 4px;
  margin: 40px auto 0 auto;
}
.btn-wraper:hover {
  border: 1px dashed #b72026;
}

.btn {
  display: block;
  width: 100%;
  border-radius: 8px;
  background-color: #e0dfcc;
  padding: 10px 0;
  border: none;
  font-size: 18px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  color: #000;
}

.btn:hover {
  background-color: #b72026;
  border: none;
  cursor: pointer;
  color: #fff;
}

/* === Form Section === */
.form-section {
  width: 100%;
  background-color: #fffef1;
  padding: 50px 0;
  font-size: 20px;
}

.form-wrapper {
  width: 100%;
  max-width: 1323px;
  min-height: 400px;
  margin: auto;
}

.info-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.65fr;
  grid-gap: 30px;
  font-weight: bold;
  margin: 100px 0 50px 0;
}

.info-grid img {
  display: inline-block;
  padding: 0 10px 0 0;
  /* Aligns icon with text */
  vertical-align: middle;
}

.form-section .btn-wraper {
  margin: 0;
}

/* Form Rows (Text Inputs) */
.form-row {
  margin: 50px 0;
  display: grid;
  width: 100%;
  grid-template-columns: 120px auto;
  border-bottom: 12px solid transparent;
  border-image: url("/svg/julefabrikken/penstroke.svg") 30 round;
  height: 51px;
  align-items: center;
}

/* Specific class to remove border and set height for checkbox rows */
.form-row--no-border {
  height: auto;
  border: none;
}

/* Styling the submit button container to match the height of other form rows */
.form-row--submit {
  height: auto;
  margin-top: 50px; /* Adjust margin for proper spacing */
}

.form-section .check-grid {
  grid-template-columns: 50px auto;
  margin: 20px 0 0 0;
}

.form-row label {
  display: block;
  font-size: 28px;
  font-weight: 400;
}

.form-row input[type="text"],
.form-row input[type="email"] {
  border: none;
  background-color: transparent;
  font-family: "sheila", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 48px;
  margin-bottom: -10px;
}

.form-row input:focus,
.form-row input:active {
  outline: none;
}

.form-row .check-label {
  font-size: 20px;
}

/* === Custom Checkbox Style === */
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

/* Hide default checkbox */
.checkbox-container input[type="checkbox"] {
  display: none;
}

/* Custom checkbox box */
.checkbox-box {
  position: relative;
  width: 30px;
  height: 30px;
  background: transparent;
}

/* Handwritten box border using SVG */
.checkbox-box svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.box-path {
  fill: none;
  stroke: #b72026;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#roughen);
}

/* Handwritten checkmark */
.checkmark-path {
  fill: none;
  stroke: #000000;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.3s ease;
  filter: url(#roughen);
}

/* Show checkmark when checked */
.checkbox-container
  input[type="checkbox"]:checked
  ~ .checkbox-box
  .checkmark-path {
  stroke-dashoffset: 0;
}

.checkbox-label {
  font-size: 18px;
  color: #333;
}

/* === Media Queries === */
@media (max-width: 900px) {
  .kruseduller {
    display: none;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 20px;
  }

  h1 {
    font-size: 80px;
  }

  h2 {
    font-size: 48px;
  }

  header {
    margin: 40px auto;
    font-size: 24px;
  }

  .info-grid,
  .grid {
    grid-template-columns: 1fr;
  }

  .grid-item1 {
    order: 2; /* move item1 below item2 */
  }
  .grid-item2 {
    order: 1; /* move item2 above item1 */
  }

  .form-row {
    /* The form-row grid is kept as-is, but its height is set to auto for better flow on small screens */
    height: auto;
    grid-template-columns: 18% 80%;
    max-width: 100%;
  }
  .form-row label {
    font-size: 20px;
  }

  .form-row input[type="text"],
  .form-row input[type="email"] {
    font-size: 30px; /* Adjusted to look better on smaller screens */
  }
}

@media (max-width: 480px) {
  header {
    margin: 0 auto;
  }

  .header-wrapper {
    height: 80vh;
  }
  .centerContainer img {
    max-width: 70%;
  }

  .content-section {
    max-width: 1323px;
    margin: 50px auto;
    position: relative;
    text-align: center;
  }

  .bottom-info {
    text-align: center;
  }

  .form-row--submit {
    grid-template-columns: 100%;
    justify-items: center;
  }

  .info-grid {
    text-align: center;
  }

  .info-grid img {
    display: block;
    margin: 5px auto;
  }
}
