/*
Theme Name: CJV Schiedam Clone
Theme URI: https://www.cjvschiedam.nl/
Author: CJV Schiedam
Description: WordPress clone of the Next.js CJV Schiedam website. Built to work with Gutenberg pages and the CJV content plugins.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: cjv-schiedam
*/

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-v18-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-v18-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-v18-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-v22-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-v22-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-v22-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-v22-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --cjv-red-50: #fef2f2;
  --cjv-red-100: #ffe2e3;
  --cjv-red-400: #fd6970;
  --cjv-red: #d70214;
  --cjv-red-700: #be0c1c;
  --cjv-red-800: #9d0e1c;
  --cjv-black: #1a1a1a;
  --cjv-white: #ffffff;
  --cjv-cream: #faf8f5;
  --cjv-neutral-50: #fafafa;
  --cjv-neutral-100: #f5f5f5;
  --cjv-neutral-200: #e5e5e5;
  --cjv-neutral-300: #d4d4d4;
  --cjv-neutral-400: #a3a3a3;
  --cjv-neutral-500: #737373;
  --cjv-neutral-600: #525252;
  --cjv-neutral-700: #404040;
  --cjv-neutral-800: #262626;
  --cjv-neutral-900: #171717;
  --cjv-radius: 1rem;
  --cjv-container: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cjv-white);
  color: var(--cjv-black);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.admin-bar .cjv-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .cjv-header {
    top: 46px;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", system-ui, sans-serif;
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
}

.cjv-container {
  width: min(100% - 2rem, var(--cjv-container));
  margin-inline: auto;
}

@media (min-width: 640px) {
  .cjv-container {
    width: min(100% - 3rem, var(--cjv-container));
  }
}

.cjv-main {
  min-height: 60vh;
}

.cjv-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--cjv-neutral-200);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

.cjv-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cjv-header__inner {
    min-height: 5rem;
  }
}

.cjv-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.cjv-logo img {
  width: auto;
  height: 3rem;
}

@media (min-width: 768px) {
  .cjv-logo img {
    height: 3.5rem;
  }
}

.cjv-header-blocks {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.cjv-header-blocks > * {
  margin: 0;
}

@media (min-width: 1024px) {
  .cjv-header-blocks {
    display: flex;
  }
}

.cjv-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cjv-nav li {
  position: relative;
}

.cjv-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: var(--cjv-neutral-700);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.cjv-nav a:hover,
.cjv-nav .current-menu-item > a,
.cjv-nav .current-menu-ancestor > a {
  background: var(--cjv-red-50);
  color: var(--cjv-red);
}

.cjv-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 13rem;
  margin: 0.25rem 0 0;
  padding: 0.5rem 0;
  list-style: none;
  border: 1px solid var(--cjv-neutral-200);
  border-radius: 0.75rem;
  background: var(--cjv-white);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.cjv-nav li:hover > .sub-menu,
.cjv-nav li:focus-within > .sub-menu {
  display: block;
}

.cjv-nav .sub-menu a {
  display: flex;
  border-radius: 0;
  padding: 0.5rem 1rem;
}

@media (min-width: 1024px) {
  .cjv-nav {
    display: flex;
  }
}

.cjv-mobile-toggle {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--cjv-neutral-700);
  cursor: pointer;
}

.cjv-mobile-toggle:hover {
  background: var(--cjv-neutral-100);
}

@media (min-width: 1024px) {
  .cjv-mobile-toggle,
  .cjv-mobile-nav {
    display: none;
  }
}

.cjv-mobile-nav {
  border-top: 1px solid var(--cjv-neutral-200);
  background: var(--cjv-white);
}

.cjv-mobile-nav[hidden] {
  display: none;
}

.cjv-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
}

.cjv-mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  color: var(--cjv-neutral-700);
  font-weight: 500;
  text-decoration: none;
}

.cjv-mobile-nav .sub-menu {
  padding: 0 0 0 1rem;
}

.cjv-footer {
  background: var(--cjv-black);
  color: var(--cjv-white);
}

.cjv-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block: 3rem;
}

@media (min-width: 768px) {
  .cjv-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cjv-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3rem;
    padding-block: 4rem;
  }
}

.cjv-footer h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.cjv-footer h4 {
  margin-bottom: 1rem;
  color: var(--cjv-neutral-400);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cjv-footer p,
.cjv-footer a,
.cjv-footer li {
  color: var(--cjv-neutral-300);
  font-size: 0.875rem;
}

.cjv-footer a {
  text-decoration: none;
}

.cjv-footer a:hover {
  color: var(--cjv-white);
}

.cjv-footer ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cjv-footer__bottom {
  border-top: 1px solid var(--cjv-neutral-800);
  padding-block: 1rem;
}

.cjv-footer__bottom p {
  color: var(--cjv-neutral-500);
  font-size: 0.75rem;
}

.cjv-footer-blocks {
  padding-block: 3rem;
  color: var(--cjv-neutral-300);
}

@media (min-width: 1024px) {
  .cjv-footer-blocks {
    padding-block: 4rem;
  }
}

.cjv-footer-blocks > * + * {
  margin-top: 1.5rem;
}

.cjv-footer-blocks h1,
.cjv-footer-blocks h2,
.cjv-footer-blocks h3,
.cjv-footer-blocks h4,
.cjv-footer-blocks h5,
.cjv-footer-blocks h6 {
  color: var(--cjv-white);
}

.cjv-footer-blocks a {
  color: inherit;
}

.cjv-footer-blocks a:hover {
  color: var(--cjv-white);
}

.cjv-section {
  padding-block: 4rem;
}

@media (min-width: 768px) {
  .cjv-section {
    padding-block: 6rem;
  }
}

.cjv-section--small {
  padding-block: 3rem;
}

.cjv-bg-red {
  background: var(--cjv-red);
  color: var(--cjv-white);
}

.cjv-bg-black {
  background: var(--cjv-black);
  color: var(--cjv-white);
}

.cjv-bg-cream {
  background: var(--cjv-cream);
}

.cjv-bg-neutral {
  background: var(--cjv-neutral-50);
}

.cjv-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--cjv-white);
}

@media (min-width: 768px) {
  .cjv-hero {
    min-height: 80vh;
  }
}

.cjv-hero::before,
.cjv-image-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.6), rgba(26, 26, 26, 0.3));
}

.cjv-hero__bg,
.cjv-image-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cjv-hero__content {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  padding-block: 5rem;
}

.cjv-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.08;
}

.cjv-hero p {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
}

.cjv-hero__actions,
.cjv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.cjv-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  height: 60px;
  pointer-events: none;
}

.cjv-page-hero {
  position: relative;
  overflow: hidden;
  padding-block: 4rem;
  text-align: center;
}

@media (min-width: 768px) {
  .cjv-page-hero {
    padding-block: 6rem;
  }
}

.cjv-page-hero h1 {
  font-size: clamp(2.25rem, 4vw, 3rem);
}

.cjv-page-hero p {
  max-width: 42rem;
  margin: 1rem auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
}

.cjv-image-hero {
  position: relative;
  height: 40vh;
  min-height: 22rem;
  overflow: hidden;
  color: var(--cjv-white);
}

@media (min-width: 768px) {
  .cjv-image-hero {
    height: 50vh;
  }
}

.cjv-image-hero::before {
  background: linear-gradient(0deg, rgba(26, 26, 26, 0.72), rgba(26, 26, 26, 0.1));
}

.cjv-image-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .cjv-image-hero__content {
    padding-bottom: 3rem;
  }
}

.cjv-image-hero h1 {
  margin-top: 0.75rem;
  color: var(--cjv-white);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.cjv-image-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
}

.cjv-detail-back {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.45rem;
  width: auto;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.28);
  color: var(--cjv-white);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cjv-detail-back:hover {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(26, 26, 26, 0.42);
  color: var(--cjv-white);
  transform: translateX(-2px);
}

.cjv-section-heading {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.cjv-section-heading h2 {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
}

.cjv-section-heading p {
  margin-top: 1rem;
  color: var(--cjv-neutral-600);
  font-size: 1.125rem;
}

.cjv-grid {
  display: grid;
  gap: 1.5rem;
}

.cjv-grid--2,
.cjv-grid--3,
.cjv-grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cjv-grid--2,
  .cjv-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .cjv-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cjv-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cjv-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--cjv-neutral-200);
  border-radius: var(--cjv-radius);
  background: var(--cjv-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

a.cjv-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.cjv-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.cjv-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.cjv-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cjv-card:hover .cjv-card__image img {
  transform: scale(1.05);
}

.cjv-card__content {
  padding: 1.25rem;
}

.cjv-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.cjv-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.cjv-card h3 a {
  color: inherit;
  text-decoration: none;
}

.cjv-card:hover h3,
.cjv-card:hover h3 a {
  color: var(--cjv-red);
}

.cjv-card__subtitle,
.cjv-card__excerpt,
.cjv-muted {
  color: var(--cjv-neutral-600);
}

.cjv-card__subtitle {
  margin-top: 0.35rem;
  color: var(--cjv-neutral-500);
  font-size: 0.875rem;
}

.cjv-card__excerpt {
  display: -webkit-box;
  margin-top: 0.5rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.875rem;
}

.cjv-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  color: var(--cjv-neutral-500);
  font-size: 0.75rem;
}

.cjv-inline-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.cjv-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  color: var(--cjv-red);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.cjv-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  background: var(--cjv-red-100);
  color: var(--cjv-red-800);
  font-size: 0.75rem;
  font-weight: 500;
}

.cjv-badge--neutral {
  background: var(--cjv-neutral-100);
  color: var(--cjv-neutral-700);
}

.cjv-badge--green {
  background: #dcfce7;
  color: #166534;
}

.cjv-btn,
.wp-block-button__link,
.cjv-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  background: var(--cjv-red);
  color: var(--cjv-white);
  cursor: pointer;
  font-weight: 600;
  line-height: 1.5;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cjv-btn:hover,
.wp-block-button__link:hover,
.cjv-form button:hover {
  background: var(--cjv-red-700);
  color: var(--cjv-white);
}

.cjv-btn--lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.cjv-btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.cjv-btn--outline {
  border-color: currentColor;
  background: transparent;
  color: var(--cjv-red);
}

.cjv-btn--outline:hover {
  background: var(--cjv-red-50);
  color: var(--cjv-red);
}

.cjv-btn--ghost {
  background: transparent;
  color: var(--cjv-neutral-700);
}

.cjv-btn--ghost:hover {
  background: var(--cjv-neutral-100);
  color: var(--cjv-neutral-900);
}

.cjv-btn--light {
  border-color: var(--cjv-white);
  background: transparent;
  color: var(--cjv-white);
}

.cjv-btn--light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cjv-white);
}

.cjv-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cjv-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cjv-values {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cjv-value {
  text-align: center;
  padding: 1.5rem;
}

.cjv-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: var(--cjv-red-100);
  color: var(--cjv-red);
  margin-bottom: 1rem;
}

.cjv-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .cjv-two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cjv-offset-image {
  position: relative;
}

.cjv-offset-image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
}

.cjv-offset-image::after {
  content: "";
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  z-index: -1;
  width: 8rem;
  height: 8rem;
  border-radius: 1rem;
  background: var(--cjv-red);
}

.cjv-cta {
  padding-block: 4rem;
  text-align: center;
}

@media (min-width: 768px) {
  .cjv-cta {
    padding-block: 5rem;
  }
}

.cjv-cta p {
  max-width: 42rem;
  margin: 1rem auto 0;
  font-size: 1.125rem;
}

.cjv-cta.cjv-bg-red p,
.cjv-cta.cjv-bg-black p {
  color: rgba(255, 255, 255, 0.9);
}

.cjv-cta.cjv-bg-cream p {
  color: var(--cjv-neutral-600);
}

.cjv-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .cjv-detail-grid {
    grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
    gap: 4rem;
  }
}

.cjv-content-stack {
  display: grid;
  gap: 2rem;
}

.cjv-content-stack h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.cjv-sidebar {
  position: sticky;
  top: 7rem;
  border-radius: 1rem;
  background: var(--cjv-cream);
  padding: 1.5rem;
}

.cjv-info-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.cjv-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.cjv-info-item svg {
  flex: 0 0 auto;
  margin-top: 0.125rem;
  color: var(--cjv-red);
}

.cjv-info-item strong {
  display: block;
  font-size: 0.875rem;
}

.cjv-info-item span {
  display: block;
  color: var(--cjv-neutral-600);
  font-size: 0.875rem;
}

.cjv-check-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cjv-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cjv-check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.5rem;
  background: var(--cjv-cream);
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.cjv-check-item svg,
.cjv-benefit svg {
  color: var(--cjv-red);
  flex: 0 0 auto;
}

.cjv-board-avatar {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--cjv-neutral-100);
}

.cjv-board-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cjv-board-avatar svg {
  color: var(--cjv-neutral-300);
}

.cjv-center {
  text-align: center;
}

.cjv-narrow {
  max-width: 48rem;
  margin-inline: auto;
}

.cjv-prose {
  max-width: 48rem;
  margin-inline: auto;
  color: var(--cjv-neutral-700);
  font-size: 1.125rem;
}

.cjv-prose > * + * {
  margin-top: 1.25rem;
}

.cjv-prose h2,
.cjv-prose h3 {
  color: var(--cjv-black);
}

.cjv-prose h2 {
  margin-top: 2rem;
  font-size: 1.75rem;
}

.cjv-prose h3 {
  margin-top: 1.75rem;
  font-size: 1.25rem;
}

.cjv-prose ul {
  padding-left: 1.4rem;
}

.cjv-prose a {
  color: var(--cjv-red);
}

.cjv-benefits {
  display: grid;
  gap: 1rem;
}

.cjv-benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--cjv-neutral-700);
}

.cjv-form-wrap {
  border-radius: 1rem;
  background: var(--cjv-cream);
  padding: 2rem;
}

.cjv-form {
  display: grid;
  gap: 1rem;
}

.cjv-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cjv-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cjv-form label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.cjv-form input,
.cjv-form textarea,
.cjv-form select {
  width: 100%;
  border: 1px solid var(--cjv-neutral-300);
  border-radius: 0.5rem;
  background: var(--cjv-white);
  color: var(--cjv-black);
  font: inherit;
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cjv-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.cjv-form input:focus,
.cjv-form textarea:focus,
.cjv-form select:focus {
  border-color: var(--cjv-red);
  box-shadow: 0 0 0 1px var(--cjv-red);
}

.cjv-form .cjv-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.cjv-form .cjv-checkbox input {
  width: auto;
  margin-top: 0.25rem;
}

.cjv-form__message {
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  background: #dcfce7;
  color: #166534;
  font-size: 0.875rem;
}

.cjv-jetform {
  --cjv-form-border: var(--cjv-neutral-300);
  --cjv-form-focus: var(--cjv-red);
}

.cjv-jetform .jet-form-builder,
.cjv-jetform form {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.cjv-jetform .wp-block-columns {
  margin: 0;
  gap: 1rem;
}

.cjv-jetform .jet-form-builder-row,
.cjv-jetform .jet-form-builder__field-wrap,
.cjv-jetform .wp-block-jet-forms-text-field,
.cjv-jetform .wp-block-jet-forms-textarea-field,
.cjv-jetform .wp-block-jet-forms-select-field,
.cjv-jetform .wp-block-jet-forms-number-field,
.cjv-jetform .wp-block-jet-forms-date-field,
.cjv-jetform .wp-block-jet-forms-radio-field,
.cjv-jetform .wp-block-jet-forms-checkbox-field,
.cjv-jetform .wp-block-jet-forms-calculated-field {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.cjv-jetform label,
.cjv-jetform .jet-form-builder__label,
.cjv-jetform .jet-form-builder__label-text,
.cjv-jetform .jet-form-builder__field-label {
  display: block;
  margin: 0;
  color: var(--cjv-neutral-800);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.cjv-jetform .jet-form-builder__required {
  color: var(--cjv-red);
}

.cjv-jetform .jet-form-builder__desc,
.cjv-jetform .jet-form-builder__field-description {
  margin: 0;
  color: var(--cjv-neutral-600);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.cjv-jetform input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.cjv-jetform textarea,
.cjv-jetform select,
.cjv-jetform .jet-form-builder__field {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--cjv-form-border);
  border-radius: 0.5rem;
  background: var(--cjv-white);
  color: var(--cjv-black);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.4;
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cjv-jetform textarea,
.cjv-jetform textarea.jet-form-builder__field {
  min-height: 9rem;
  resize: vertical;
}

.cjv-jetform input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):focus,
.cjv-jetform textarea:focus,
.cjv-jetform select:focus,
.cjv-jetform .jet-form-builder__field:focus {
  border-color: var(--cjv-form-focus);
  box-shadow: 0 0 0 1px var(--cjv-form-focus);
}

.cjv-jetform input::placeholder,
.cjv-jetform textarea::placeholder {
  color: var(--cjv-neutral-400);
}

.cjv-jetform .jet-form-builder__fields-group,
.cjv-jetform .jet-form-builder__field-template {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.cjv-jetform .jet-form-builder__field-template {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
}

.cjv-jetform input[type="checkbox"],
.cjv-jetform input[type="radio"] {
  width: 1rem;
  height: 1rem;
  margin: 0.2rem 0 0;
  accent-color: var(--cjv-red);
}

.cjv-jetform .jet-form-builder__calculated-field,
.cjv-jetform output {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: var(--cjv-red-50);
  color: var(--cjv-red-800);
  font-weight: 700;
  padding: 0.45rem 0.85rem;
}

.cjv-jetform button,
.cjv-jetform button[type="submit"],
.cjv-jetform .jet-form-builder__submit,
.cjv-jetform input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.75rem;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  background: var(--cjv-red);
  color: var(--cjv-white);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.cjv-jetform button:hover,
.cjv-jetform button[type="submit"]:hover,
.cjv-jetform .jet-form-builder__submit:hover,
.cjv-jetform input[type="submit"]:hover {
  background: var(--cjv-red-700);
  color: var(--cjv-white);
}

.cjv-jetform button:disabled,
.cjv-jetform input[type="submit"]:disabled,
.cjv-jetform .is-loading {
  cursor: wait;
  opacity: 0.65;
}

.cjv-jetform .jet-form-builder-message,
.cjv-jetform .jet-form-builder-message--success,
.cjv-jetform .jet-form-builder-message--error {
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.cjv-jetform .jet-form-builder-message,
.cjv-jetform .jet-form-builder-message--success {
  background: #dcfce7;
  color: #166534;
}

.cjv-jetform .jet-form-builder-message--error,
.cjv-jetform .jet-form-builder__error,
.cjv-jetform .jet-form-builder__field-error {
  background: var(--cjv-red-50);
  color: var(--cjv-red-800);
}

.cjv-jetform .jet-form-builder-progress-pages,
.cjv-jetform .jet-form-builder-progress-pages__item {
  color: var(--cjv-neutral-700);
}

.cjv-jetform .jet-form-builder-progress-pages__item--circle {
  border-color: var(--cjv-red);
  background: var(--cjv-white);
  color: var(--cjv-red);
}

.cjv-jetform .jet-form-builder-progress-pages__item.is-active .jet-form-builder-progress-pages__item--circle,
.cjv-jetform .jet-form-builder-progress-pages__item--active .jet-form-builder-progress-pages__item--circle {
  background: var(--cjv-red);
  color: var(--cjv-white);
}

.cjv-map {
  width: 100%;
  height: 400px;
  border: 0;
  background: var(--cjv-neutral-200);
}

.cjv-faq-list {
  display: grid;
  gap: 0.75rem;
}

.cjv-faq {
  overflow: hidden;
  border: 1px solid var(--cjv-neutral-200);
  border-radius: 0.75rem;
}

.cjv-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.cjv-faq summary::-webkit-details-marker {
  display: none;
}

.cjv-faq summary:hover {
  background: var(--cjv-neutral-50);
}

.cjv-faq summary svg {
  flex: 0 0 auto;
  color: var(--cjv-neutral-400);
  transition: transform 0.2s ease;
}

.cjv-faq[open] summary svg {
  transform: rotate(180deg);
}

.cjv-faq__answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--cjv-neutral-600);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wp-block-image img {
  height: auto;
}
