/* Paket / CF7 modal — Figma node 2087:3631 (Form) */

html.templateTheme-paketModal--open {
  overflow: hidden;
}

.templateTheme-paketModal[hidden] {
  display: none !important;
}

.templateTheme-paketModal {
  position: fixed;
  /* Anchor to the viewport, not a parent (do not place this element inside overflow:hidden). */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  min-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  margin: 0;
}

.templateTheme-paketModal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.templateTheme-paketModal__panel {
  position: relative;
  z-index: 1;
  width: min(785px, calc(100vw - 48px));
  max-height: min(90vh, 920px);
  overflow: auto;
  background: #edf0f2;
  border-radius: 12px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  color: #232323;
  box-sizing: border-box;
  overflow: auto;
}

/* Wider panel when the Paket pricing cards are present (matches pricing block layout). */
.templateTheme-paketModal:has(.templateTheme-cf7-paket__cards)
  .templateTheme-paketModal__panel {
  max-width: 100%;
}

.templateTheme-paketModal__body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 785px;
  margin: 0 auto;
  padding: 40px 40px 32px;
  box-sizing: border-box;
}

.templateTheme-paketModal__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  color: #232323;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.templateTheme-paketModal__close:hover,
.templateTheme-paketModal__close:focus-visible {
  background: rgba(0, 0, 0, 0.12);
}

/* CF7 + design tokens (2087:3631) */
.templateTheme-paketModal .wpcf7 {
  position: relative;
  width: 100%;
}

.templateTheme-paketModal .wpcf7-form {
  display: block;
  margin: 0;
  padding: 0;
  font-family: inherit;
}

/* Intro block: first element should be the intro wrapper in the CF7 template */
.templateTheme-cf7-paket__intro,
.templateTheme-paketModal .templateTheme-cf7-paket__intro {
  display: block;
  margin: 0 0 0;
  padding: 0 0 24px;
  max-width: 100%;
  font-size: 42px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.42px;
  color: #232323;
}

.templateTheme-cf7-paket__intro p,
.templateTheme-paketModal .templateTheme-cf7-paket__intro p {
  margin: 0;
  line-height: normal;
}

.templateTheme-cf7-paket__intro p.mb-0,
.templateTheme-paketModal .templateTheme-cf7-paket__intro p.mb-0 {
  margin-bottom: 0;
}

/* Paket field: pricingBlock-style cards (Figma 1351:4408) */
.templateTheme-cf7-paket__paket,
.templateTheme-paketModal .templateTheme-cf7-paket__paket {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.templateTheme-cf7-paket__cards,
.templateTheme-paketModal .templateTheme-cf7-paket__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  --templateTheme-cf7-paket-image-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='374' height='210' viewBox='0 0 374 210' fill='none'%3E%3Cpath d='M0 12C0 5.37258 5.37258 0 12 0H362C368.627 0 374 5.37258 374 12V123.365C374 129.993 368.627 135.365 362 135.365H300.607C293.98 135.365 288.607 140.738 288.607 147.365V198C288.607 204.627 283.234 210 276.607 210H12C5.37256 210 0 204.627 0 198V12Z' fill='black'/%3E%3C/svg%3E");
}

/* Native radio: hidden; entire card is the hit target (label) */
.templateTheme-cf7-paket__radio,
.templateTheme-paketModal .templateTheme-cf7-paket__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.templateTheme-cf7-paket__card,
.templateTheme-paketModal .templateTheme-cf7-paket__card {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.templateTheme-cf7-paket__cardInner,
.templateTheme-paketModal .templateTheme-cf7-paket__cardInner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 20px;
  border-radius: 20px;
  background: #edf0f2;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  color: #000;
  transition:
    background 0.2s var(--templateTheme-ease-soft, ease),
    color 0.2s var(--templateTheme-ease-soft, ease),
    box-shadow 0.2s var(--templateTheme-ease-soft, ease);
}

.templateTheme-cf7-paket__card:has(input:checked)
  .templateTheme-cf7-paket__cardInner,
.templateTheme-paketModal
  .templateTheme-cf7-paket__card:has(input:checked)
  .templateTheme-cf7-paket__cardInner {
  background:
    radial-gradient(
      162.21% 77.79% at 84.55% 33.84%,
      rgba(214, 242, 177, 0.2) 0%,
      rgba(161, 190, 145, 0.2) 25%,
      rgba(109, 138, 114, 0.2) 50%,
      rgba(82, 111, 98, 0.2) 62.5%,
      rgba(56, 85, 82, 0.2) 75%,
      rgba(29, 59, 66, 0.2) 87.5%,
      rgba(16, 46, 58, 0.2) 93.75%,
      rgba(3, 33, 50, 0.2) 100%
    ),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(210.41deg, #232323 27.22%, #415a69 74.38%, #dce9f4 97.62%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.templateTheme-cf7-paket__card:focus-within .templateTheme-cf7-paket__cardInner,
.templateTheme-paketModal
  .templateTheme-cf7-paket__card:focus-within
  .templateTheme-cf7-paket__cardInner {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.templateTheme-cf7-paket__card:has(input:checked):focus-within
  .templateTheme-cf7-paket__cardInner,
.templateTheme-paketModal
  .templateTheme-cf7-paket__card:has(input:checked):focus-within
  .templateTheme-cf7-paket__cardInner {
  outline-color: rgba(255, 255, 255, 0.7);
}

.templateTheme-cf7-paket__cardTop,
.templateTheme-paketModal .templateTheme-cf7-paket__cardTop {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.templateTheme-cf7-paket__packageName,
.templateTheme-paketModal .templateTheme-cf7-paket__packageName {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.templateTheme-cf7-paket__packageMark,
.templateTheme-paketModal .templateTheme-cf7-paket__packageMark {
  width: 21px;
  height: 34px;
  flex-shrink: 0;
  color: #000;
}

.templateTheme-cf7-paket__card:has(input:checked)
  .templateTheme-cf7-paket__packageMark,
.templateTheme-paketModal
  .templateTheme-cf7-paket__card:has(input:checked)
  .templateTheme-cf7-paket__packageMark {
  color: #fff;
}

.templateTheme-cf7-paket__packageTitle,
.templateTheme-paketModal .templateTheme-cf7-paket__packageTitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.18px;
}

.templateTheme-cf7-paket__copy,
.templateTheme-paketModal .templateTheme-cf7-paket__copy {
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.templateTheme-cf7-paket__text,
.templateTheme-paketModal .templateTheme-cf7-paket__text,
.templateTheme-cf7-paket__text p,
.templateTheme-paketModal .templateTheme-cf7-paket__text p {
  margin: 0;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.18;
  color: inherit;
}

.templateTheme-cf7-paket__text strong,
.templateTheme-paketModal .templateTheme-cf7-paket__text strong {
  font-weight: 700;
}

.templateTheme-cf7-paket__divider,
.templateTheme-paketModal .templateTheme-cf7-paket__divider {
  width: 186px;
  max-width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.templateTheme-cf7-paket__meta,
.templateTheme-paketModal .templateTheme-cf7-paket__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 20px;
}

.templateTheme-cf7-paket__meta:has(.templateTheme-cf7-paket__features li),
.templateTheme-paketModal
  .templateTheme-cf7-paket__meta:has(.templateTheme-cf7-paket__features li) {
  justify-content: space-between;
}

.templateTheme-cf7-paket__features,
.templateTheme-paketModal .templateTheme-cf7-paket__features {
  display: flex;
  flex: 1 1 100px;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.templateTheme-cf7-paket__feature,
.templateTheme-paketModal .templateTheme-cf7-paket__feature {
  display: flex;
  align-items: center;
  gap: 6px;
}

.templateTheme-cf7-paket__featureIcon,
.templateTheme-paketModal .templateTheme-cf7-paket__featureIcon {
  display: flex;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.templateTheme-cf7-paket__featureText,
.templateTheme-paketModal .templateTheme-cf7-paket__featureText {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: inherit;
}

.templateTheme-cf7-paket__price,
.templateTheme-paketModal .templateTheme-cf7-paket__price {
  display: inline-flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: flex-end;
  align-self: flex-end;
  gap: 6px;
  line-height: 1;
  white-space: normal;
  text-align: right;
}

.templateTheme-cf7-paket__priceMain,
.templateTheme-paketModal .templateTheme-cf7-paket__priceMain {
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.28px;
  color: inherit;
}

.templateTheme-cf7-paket__priceSuffix,
.templateTheme-paketModal .templateTheme-cf7-paket__priceSuffix {
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  color: rgba(0, 0, 0, 0.6);
}

.templateTheme-cf7-paket__card:has(input:checked)
  .templateTheme-cf7-paket__priceSuffix,
.templateTheme-paketModal
  .templateTheme-cf7-paket__card:has(input:checked)
  .templateTheme-cf7-paket__priceSuffix {
  color: rgba(255, 255, 255, 0.6);
}

.templateTheme-cf7-paket__cardMedia,
.templateTheme-paketModal .templateTheme-cf7-paket__cardMedia {
  position: relative;
  margin-top: 15px;
  min-height: 120px;
  background: transparent;
  overflow: visible;
}

.templateTheme-cf7-paket__image,
.templateTheme-paketModal .templateTheme-cf7-paket__image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 120px;
  max-height: 180px;
  object-fit: cover;
  -webkit-mask-image: var(--templateTheme-cf7-paket-image-mask);
  mask-image: var(--templateTheme-cf7-paket-image-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: center;
  mask-position: center;
  background: rgba(0, 0, 0, 0.08);
  border: 0;
}

.templateTheme-cf7-paket__image--placeholder,
.templateTheme-paketModal .templateTheme-cf7-paket__image--placeholder {
  display: block;
  min-height: 150px;
  width: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.12));
  -webkit-mask-image: var(--templateTheme-cf7-paket-image-mask);
  mask-image: var(--templateTheme-cf7-paket-image-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.templateTheme-cf7-paket__arrow,
.templateTheme-paketModal .templateTheme-cf7-paket__arrow {
  position: absolute;
  right: 8px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: #000;
  pointer-events: none;
}

.templateTheme-cf7-paket__card:has(input:checked)
  .templateTheme-cf7-paket__arrow,
.templateTheme-paketModal
  .templateTheme-cf7-paket__card:has(input:checked)
  .templateTheme-cf7-paket__arrow {
  color: #fff;
}

.templateTheme-cf7-paket__arrow svg,
.templateTheme-paketModal .templateTheme-cf7-paket__arrow svg {
  display: block;
}

@media (max-width: 1024px) {
  .templateTheme-cf7-paket__cards,
  .templateTheme-paketModal .templateTheme-cf7-paket__cards {
    grid-template-columns: 1fr;
  }

  .templateTheme-paketModal:has(.templateTheme-cf7-paket__cards)
    .templateTheme-paketModal__panel {
    width: min(640px, calc(100vw - 48px));
  }
}

/* Name + email row */
.templateTheme-cf7-paket__row2,
.templateTheme-paketModal .templateTheme-cf7-paket__row2 {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  margin: 0 0 0;
  padding: 0;
}

.templateTheme-cf7-paket__field,
.templateTheme-paketModal .templateTheme-cf7-paket__field {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.templateTheme-cf7-paket__field .wpcf7-form-control-wrap,
.templateTheme-paketModal
  .templateTheme-cf7-paket__field
  .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  min-height: 48px;
  box-sizing: border-box;
}

.templateTheme-cf7-paket__field .wpcf7-text,
.templateTheme-cf7-paket__field .wpcf7-email,
.templateTheme-paketModal .templateTheme-cf7-paket__field .wpcf7-text,
.templateTheme-paketModal .templateTheme-cf7-paket__field .wpcf7-email {
  width: 100%;
  border: 0;
  background: transparent;
  min-height: 48px;
  padding: 8px 0;
  font-size: 18px;
  line-height: 1.5;
  color: #232323;
  box-sizing: border-box;
}

.templateTheme-cf7-paket__field .wpcf7-form-control-wrap,
.templateTheme-paketModal
  .templateTheme-cf7-paket__field
  .wpcf7-form-control-wrap {
  padding: 0;
}

.templateTheme-cf7-paket__field label .wpcf7-form-control-wrap,
.templateTheme-paketModal .templateTheme-cf7-paket__field > label,
.templateTheme-paketModal .templateTheme-cf7-paket__field p {
  width: 100%;
}

.templateTheme-cf7-paket__field .wpcf7-form-control-wrap,
.templateTheme-paketModal .templateTheme-cf7-paket__field p {
  margin: 0;
}

.templateTheme-cf7-paket__field .wpcf7-form-control-wrap,
.templateTheme-paketModal
  .templateTheme-cf7-paket__field
  > p
  > .wpcf7-form-control-wrap {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.templateTheme-cf7-paket__field
  .wpcf7-form-control-wrap:has(input):has(textarea) {
  align-items: flex-start;
}

.templateTheme-cf7-paket__row2 > p > label,
.templateTheme-paketModal .templateTheme-cf7-paket__row2 > p {
  display: block;
  width: 100%;
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #232323;
}

/* Textarea (Meddelande) */
.templateTheme-cf7-paket__message p,
.templateTheme-paketModal .templateTheme-cf7-paket__message p {
  display: block;
  margin: 0 0 0;
  width: 100%;
}

.templateTheme-cf7-paket__message,
.templateTheme-paketModal .templateTheme-cf7-paket__message {
  display: block;
  width: 100%;
  margin: 0 0 0;
  padding: 0 0 0;
}

.templateTheme-cf7-paket__message .wpcf7-textarea,
.templateTheme-paketModal .templateTheme-cf7-paket__message .wpcf7-textarea {
  display: block;
  width: 100%;
  min-height: 180px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  padding: 12px 0;
  font-size: 18px;
  line-height: 1.5;
  color: #232323;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
}

.templateTheme-cf7-paket__message .wpcf7-form-control-wrap,
.templateTheme-paketModal
  .templateTheme-cf7-paket__message
  .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  min-height: 180px;
  padding: 0;
  box-sizing: border-box;
}

/* Acceptance row */
.templateTheme-cf7-paket__accept,
.templateTheme-paketModal .templateTheme-cf7-paket__accept {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0 0 0;
  padding: 0 0 16px;
}

.templateTheme-cf7-paket__accept input[type="checkbox"],
.templateTheme-paketModal
  .templateTheme-cf7-paket__accept
  input[type="checkbox"] {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  margin: 0;
  accent-color: #232323;
}

.templateTheme-cf7-paket__accept .wpcf7-list-item,
.templateTheme-paketModal .templateTheme-cf7-paket__accept .wpcf7-list-item {
  margin: 0;
  display: block;
  width: 100%;
  font-size: 16px;
  font-weight: 300;
  line-height: normal;
  color: #232323;
}

.templateTheme-cf7-paket__accept a,
.templateTheme-paketModal .templateTheme-cf7-paket__accept a {
  color: #232323;
  text-decoration: underline;
  cursor: pointer;
}

/* Submit — full width lime */
.templateTheme-cf7-paket__submit p,
.templateTheme-paketModal .templateTheme-cf7-paket__submit p {
  margin: 0;
}

.templateTheme-cf7-paket__submit,
.templateTheme-paketModal .templateTheme-cf7-paket__submit {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.templateTheme-cf7-paket__submit .wpcf7-submit,
.templateTheme-paketModal .templateTheme-cf7-paket__submit.wpcf7-submit {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 42px;
  padding: 10px 40px;
  border: 0;
  border-radius: 5px;
  background: #dbfa9c;
  color: #000;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: -0.16px;
  line-height: normal;
  font-family: inherit;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease;
}

.templateTheme-cf7-paket__submit .wpcf7-submit::after,
.templateTheme-paketModal
  .templateTheme-cf7-paket__submit
  .wpcf7-submit::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 4L10.59 5.41L16.17 11H4V13H16.17L10.59 18.59L12 20L20 12L12 4Z' fill='black'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 4L10.59 5.41L16.17 11H4V13H16.17L10.59 18.59L12 20L20 12L12 4Z' fill='black'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transform: translateX(2px);
}

.templateTheme-cf7-paket__submit .wpcf7-submit:hover,
.templateTheme-cf7-paket__submit .wpcf7-submit:focus-visible,
.templateTheme-paketModal .templateTheme-cf7-paket__submit .wpcf7-submit:hover,
.templateTheme-paketModal
  .templateTheme-cf7-paket__submit
  .wpcf7-submit:focus-visible {
  background: #c8ec85;
}

.templateTheme-paketModal .wpcf7-not-valid-tip,
.templateTheme-paketModal .wpcf7-response-output {
  font-size: 14px;
  margin-top: 8px;
}

.templateTheme-paketModal .wpcf7-spinner {
  position: static;
  margin: 0 0 0 8px;
}

/* Spacing between stacked groups from CF7 (default <p> wrappers) */
.templateTheme-cf7-paket__gap,
.templateTheme-paketModal .templateTheme-cf7-paket__gap {
  display: block;
  height: 24px;
  margin: 0;
  padding: 0;
}

@media (max-width: 600px) {
  .templateTheme-paketModal {
    padding: 12px;
  }

  .templateTheme-paketModal__body {
    padding: 32px 20px 24px;
  }
}
