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


:root {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    --white: #FFFFFF;
    --grey: #F5F3F1;
    --lightBeige: #DCD3CA;
    --black: #252525;
    --dark: #000000;
    --brown: #B69382;
    --green: #4C4F43;
    --newBrown: #9F8D83;
}

.bg-green {
    background-color: var(--green);
}

.bg-brown {
    background-color: var(--brown);
}

.bg-lightBeige {
    background-color: var(--lightBeige);
}

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

html {
    font-size: inherit;
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
}


body {
    margin: 0;
    color: var(--grey);
    font-size: 1rem;
    line-height: 1.5;
    font-family: Arial, sans-serif;
    font-weight: 400;
    overflow-x: hidden;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

/* Typography - Base Styles (Mobile) */
h2 {
    font-size: clamp(30px, 4vw + 1rem, 50px);
    line-height: clamp(36px, 5vw + 1rem, 54px);
}

/* Base font size for content paragraphs and list items (mobile) */
p {
    font-size: 0.75rem;
    line-height: 1.5;
}

li {
    font-size: 0.75rem;
    line-height: 1.5;
}


.mb-3 {
    margin-bottom: 16px;
}

.mb-2 {
    margin-bottom: 6px;
}

.mb-6 {
    margin-bottom: 70px;
}

.mt-6 {
    margin-top: 70px;
}

.text-small {
    font-size: 11px;
}

.font-italic {
    font-style: italic;
}

.pl-3 {
    padding-left: 5rem;
}

.pr-2 {
    padding-right: 2rem;
}

.align-end {
    align-items: flex-end;
}

.bold-font {
    font-weight: 600;
}

.a {
    padding-top: 5rem;
    z-index: 100;
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

p {
    margin-top: 0;
}

.paragraph {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.5;
}
/*/
.paragraph.paragraph--large {
    font-size: 1.313rem;
    line-height: 1.5;
}/*/

.title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}


.title.title--new-brown {
    color: var(--newBrown);
}

.uppercase {
    text-transform: uppercase;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.h-full {
    height: 100%;
}

.w-full {
    width: 100%;
}

.flex {
    display: flex;
}

.flex-row {
    flex-direction: row;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-start;
}

.mb-5 {
    margin-bottom: 1.25rem;
}

.hidden {
    display: none;
}

.button {
    font-size: clamp(10px, 1vw + 0.4rem, 14px);

    font-weight: 700;
    background-color: var(--white);
    color: var(--black);
    padding: 1.063rem;
    border-radius: 0.3rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    height: 3.438rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
}

.button .icon {
    filter: invert(0%);
    transition: filter 0.3s ease;
}

.button:hover {
    background-color: var(--black);
    color: var(--grey);
}

.button:hover .icon {
    filter: invert(100%);
}

/* Common Close Button Styles */
.close-btn,
.dialog__close,
.form-close-btn {
    background: #FFF;
    border: none;
    border-radius: 4px;
    padding: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.close-btn:hover,
.dialog__close:hover,
.form-close-btn:hover {
    opacity: 0.8;
}

/* Black X/icon for close buttons */
.dialog__close svg rect,
.burger-menu .close-icon rect,
.form-close-btn rect {
    fill: #000;
}
.dialog__close:focus-visible {
    outline: none;
}

.dialog__close:focus {
    outline: none;
}

.logo {
    width: auto;
    height: 0.625rem;
    color: #fff;
}

.logo svg {
    height: 100%;
    width: 100%;
    color: #fff;
}

.kabelbyen-logo {
    width: auto;
    height: 156px;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
}

.kabelbyen-logo path {
    fill: var(--brown);
}


/* ===================================
   COMPONENTS - Bullets
   =================================== */
.bullet {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 3.125rem;
    color: var(--black);
}

.bullet .img {
    width: 100%;
    height: auto;
}

.bullet .content {
    display: flex;
    flex-direction: column;
}

.bullet .content .headline {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
}

.bullet .content .text {
    font-size: 1rem;
}

/* ===================================
   COMPONENTS - Lists
   =================================== */
.list.facts-list {
    padding: 0;
    margin-top: 2.5rem;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 3.125rem;
    align-items: center;
}

.list.facts-list .facts-list-item {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
}

.list.facts-list .facts-list-item .facts-list-item-icon {
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.list.facts-list .facts-list-item .facts-list-item-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
    text-transform: uppercase;
}

/* ===================================
   LAYOUT - Header & Navigation
   =================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 60;
  
}

.site-header .site-header__navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header .site-header__navbar__logo {
    z-index: 100;
}

.site-header .english-btn {
    margin-right: 2rem;
    color: var(--white);
    text-decoration: none;
    display: inline-block;
    font-size: 0.875rem;
    opacity: 1; 
    visibility: visible;
}

.site-header .english-btn:hover {
    text-decoration: underline;
}

/* Mobile Header Styles */
.site-header .container {
    padding: 2rem 2rem 0;
}

.cta--contact {
    padding: 0.875rem 1.625rem;
    background-color: var(--grey);
    color: var(--black);
    margin-right: 2rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    border-radius: 4px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.cta--contact:hover {
    background-color: var(--black);
    color: var(--grey);
}

/* ===================================
   LAYOUT - Burger Menu
   =================================== */
.burger-menu {
    display: block;
    cursor: pointer;
    position: relative;
    z-index: 99;
    height: 40px;
    width: 40px;
}

.burger-menu.is-active .burger-lines {
    display: none;
}

.burger-menu .close-icon {
    display: none;
}

.burger-menu.is-active .close-icon {
    display: flex;
    background: #FFF;
    padding: 11px;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.burger-menu .close-icon {
    width: 20px;
    height: 20px;
}

.burger-menu .close-icon rect {
    fill: #000;
}

.burger-menu {
    display: flex;
    align-items: center;
    justify-content: center;
}

.burger-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(76, 79, 67, 0.9); /* rgba converted green with opacity */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    overflow: scroll;
    z-index: 60;
    transition: transform 300ms ease-out;
    transform: translateY(-100%);

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.burger-menu-overlay ul {
    padding: 8.75rem 0 0 0;
    margin: 0;
}

.burger-menu-overlay ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.burger-menu-overlay li {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.burger-menu-overlay a {
    color: var(--white);
    text-decoration: none;
}

.burger-menu-overlay a:hover {
    color: var(--newBrown);
    opacity: 80%;
}

.burger-menu-overlay.is-active {
    transform: translateY(0);
}

/* ===================================
   LAYOUT - Form Overlay
   =================================== */
.form-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(76, 79, 67, 0.9);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    overflow: scroll;
    z-index: 60;
/*    transition: transform 300ms ease-out;
    transform: translateY(-100%);*/
    justify-content: center;
    align-items: center;
}

.form-overlay-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1600px;
    max-height: 90vh;
    position: relative;
    text-align: left;
    padding-top: 8rem;
}

.form-text-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-text-column h2 {
    text-transform: uppercase;
    color: #B59181;
    margin-bottom: 2.5rem;
}

.form-text-column p {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-form-column {
    flex: 1;
}

.form-close-btn {
    position: fixed;
    top: 2.5rem;
    right: 2.5rem;
    width: 40px;
    height: 40px;
}

form {
    display: flex;
    flex-direction: column;
}

form input {
    width: 100%;
    padding: 1.875rem;
    margin-bottom: 1.875rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

form button {
    padding: 1.063rem;
    margin: 1.875rem 0;
    background-color: #B59181;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 0.3rem;
    align-self: flex-start;
    width: auto;
    
}

/* form button:hover {
    opacity: 50%;
} */

.checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
}

.checkbox-wrapper a {
    color: inherit;
    text-decoration: underline;
}

.checkbox-wrapper a:hover {
    text-decoration: none;
}

.checkbox-wrapper input[type="checkbox"] {
    margin: 1rem;
    width: auto;
}

.checkbox-wrapper label {
    font-size: 1rem;
}

.separator-line {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1.25rem 0;
    width: 100%;
}

.scroll-lock {
    overflow: hidden;
    height: 100%;
}


/* ===================================
   PAGE SECTIONS - General
   =================================== */
.section-padding {
    padding: 4rem 0;
}

.section-bg {
    padding: 8rem 0;
}

.section-bg--green {
    background-color: var(--green);
}

.section-bg--brown {
    background-color: var(--brown);
}

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


/* ===================================
   PAGE SECTIONS - Hero (Mobile)
   =================================== */
.section-hero {
    position: relative;
    height: 105vh;
    overflow: hidden;
    margin-top: -8vh;
}

.section-hero:after {
    display: block;
    content: " ";
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--black);
    opacity: 80%;
}

.section-hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    position: relative;
    flex-wrap: wrap;
}

.section-hero__content {
    z-index: 10;
    max-width: 100%;
    word-wrap: break-word;
    text-align: center;
}

.section-hero__content__title {
    color: var(--brown);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    text-transform: uppercase;

}

.section-hero__content__subtitle {
    color: var(--grey);
    font-size: 1.25rem;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.section-hero .hero-media {
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    top: 0;
    left: 0;
}

.section-hero .shape {
    bottom: -8px;
    left: -2px;
}


/* Subhero */
.section-sub-hero {
    padding: 4.375rem 0;
}

.section-sub-hero .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(76, 79, 67, 0.9);
    z-index: 15;
}

.section-sub-hero .text {
    position: relative;
    z-index: 20;
    max-width: 40rem;
}

.section-sub-hero .facts {
    position: relative;
    z-index: 20;
}

.section-sub-hero .title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--brown);
    text-transform: uppercase;
}

.section-sub-hero .paragraph {
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.section-sub-hero .button {
    margin-bottom: 2.5rem;
}

.section-sub-hero__image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.section-sub-hero__image-container:after {
    display: block;
    content: " ";
    height: 100%;
    width: 100%;
    background-color: var(--newBrown);
    opacity: 20%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.section-sub-hero__image-container img, video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Byomraade styles (Mobile) */
#urban-area .container {
    padding: 0;
}

.urban-area-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    position: relative;
    z-index: 20;
}

.urban-area-text {
    position: relative;
    z-index: 20;
    padding: 0 2rem;
}

.urban-area-text .title {
    color: var(--brown);
    margin-bottom: 2rem;
}

.urban-area-text .paragraph {
    color: var(--grey);
    margin-bottom: 1rem;
}

.urban-area-facts {
    position: relative;
    z-index: 20;
    padding: 0 2rem;
}

.urban-area-facts .button {
    margin-bottom: 0;
}

.urban-area-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.urban-area-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--grey);
}

.urban-area-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 8px;
    height: 8px;
    background-color: var(--grey);
}

.section-new-text {
    padding: 6rem 2rem 3rem 2rem;
    clip-path: polygon(0 4%, 2% 0%, 98% 0%, 100% 4%, 100% 100%, 0% 100%);
    position: relative;
    margin-top: -16vh;
    z-index: 20;
}

.section-new-text .container {
    padding: 0;
}

.section-new-text .section-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5%;
    z-index: 10;
    pointer-events: none;
}

.section-new-text .section-arrow {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.section-new-text .section-arrow:hover {
    transform: translateX(-50%) translateY(5px);
}

.section-new-text .title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--brown);
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-new-text .paragraph {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-new-text .text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-new-text .propositions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 4rem;
    text-align: left;
}

.section-new-text .propositions > div {
    padding: 2rem 0;
    position: relative;
}

.section-new-text .propositions .proposition-headline {
    color: var(--brown);
    font-size: 4.875rem;
    margin-bottom: 1rem;
    width: 80px;
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='104' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 L68 2 L78 42 L78 102 L2 102 L2 42 Z' fill='none' stroke='%23C9A882' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}


.section-new-text .propositions .proposition-subheadline {
    color: var(--grey);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    max-width: 65%;
}

.section-new-text .propositions p {
    color: var(--grey);
}


/* Text */
.section-text {
    padding: 4.75rem 0;
}

.section-text .title {
    color: var(--newBrown);
}

.section-text p {
    color: var(--black);
}

.section-text ul {
    margin-left: 1rem;
    padding: 0;
    color: var(--black);
    margin-top: 0.5rem;
}

.section-text span {
    color: var(--black);
}

.section-text .button {
    margin-top: 20px;
}


/* Images */
.section-images {
    position: relative;
    height: 100%;
    overflow: visible;
    padding: 0 0 2rem 0;
    margin-top: -1px;
}

.section-images .container {
    padding: 0 2rem;
}

.section-images .embed-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 1080px;
    overflow: hidden;
}

.section-images .embed-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 10;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.video-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.video-overlay-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-overlay-logo {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: auto;
    height: 50px;
}

.video-overlay-logo path {
    fill: var(--brown);
}

.video-overlay-text {
    display: none;
}

.video-mobile-text {
    color: var(--grey);
    font-size: 1.25rem;
    font-weight: 700;
    text-align: left;
    margin: 0;
    padding: 2rem 0;
    text-transform: uppercase;
    line-height: 1.2;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button svg {
    width: 62px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.video-play-button .play-circle {
    fill: var(--brown);
    stroke: var(--brown);
}

.video-play-button .play-triangle {
    fill: #000000;
}

#contact-jonas-dialog p{
    color: var(--white);
}
#contact-jonas-dialog .dialog__text, #contact-jonas-dialog .dialog__text p{
    margin-bottom: 0;
}

/* ===================================
   PAGE SECTIONS - Quote (Mobile)
   =================================== */
.section-quote {
    background-color: var(--black);
    position: relative;
    padding-top: 0;
}

.quote-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
}

.quote-content {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem 0rem;
}

.quote-content h2 {
    color: var(--grey);
    margin: 0 0 2rem 0;
    position: relative;
    z-index: 2;
    font-size: clamp(22px, 3vw + 0.5rem, 38px);
    line-height: clamp(26px, 3vw + 0.5rem, 40px);
    font-weight: 400;
}

.quote-author {
    margin-bottom: 2rem;
}

.author-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--grey);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.author-title {
    font-size: 1rem;
    color: var(--grey);
}

.quote-image {
    position: relative;
}

.quote-picture {
    position: relative;
    z-index: 10; /* Picture in front - higher value */
}

.quote-picture img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    padding: 0rem 2rem 0rem;
    position: relative;
    z-index: 10; /* Ensure image is in front */
}

.quote-svg {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(16rem, calc(100vw - 4rem), 28rem); /* Full width minus 2rem margin on each side */
    height: auto;
    z-index: 1; /* SVG behind picture - lower value */
    opacity: 1;
}

@media (min-width: 1024px) {
    .quote-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 0;
    }
    .dialog__container{
        align-items: center;
    }

    .quote-content {
        grid-column: 1 / span 6;
        padding: 4rem 1rem 7rem 6rem;
    }

    .quote-image {
        grid-column: 7 / span 6;
        height: 100%;
        display: flex;
        align-items: center;
        position: relative;
    }

    .quote-picture {
        width: 100%;
        height: 100%;
        position: relative;
        z-index: 2;
    }

    .quote-picture img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        padding: 0rem 2rem;
    }

    .quote-svg {
        width: 35.875rem; /* 574px fixed width on desktop */
        opacity: 0.4;
        /* Other properties inherited from mobile styles */
    }

    .author-name {
        font-size: 1.5rem;
    }

    .author-title {
        font-size: 1.5rem;
    }
}

/* ===================================
   PAGE SECTIONS - Book Tour (Mobile)
   =================================== */
.section-book-tour {
    padding: 0;
    background-color: var(--lightBeige);
}

.section-book-tour .container {
    padding: 0;
    max-width: 100%;
}

.book-tour-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
}

.book-tour-image {
    min-height: 400px;
    overflow: hidden;
    clip-path: polygon(39% 0, 100% 5%, 100% 100%, 0 100%, 0 5%);
    order: 2;
}

.book-tour-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.book-tour-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2rem;
    order: 1;
}

.book-tour-content .button {
    align-self: flex-start;
}

.book-tour-title {
    color: black;
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    line-height: 1.2;
}

.book-tour-text {
    margin-bottom: 2rem;
    color: var(--black);
}

.book-tour-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.book-tour-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--black);
}

.book-tour-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 8px;
    height: 8px;
    background-color: var(--black);
}



/* ===================================
   PAGE SECTIONS - Check Match (Mobile)
   =================================== */
.section-check-match {
    background-color: var(--black);
    padding: 4rem 2rem 0;
}

.section-check-match h2 {
    color: var(--grey);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-check-match h6 {
    color: var(--grey);
    margin-bottom: 2rem;
}

.section-check-match p {
    color: var(--grey);
}

/* ===================================
   PAGE SECTIONS - Text Image (Mobile)
   =================================== */
.section-text-image {
    height: 100%;
    padding: 0;
}

.section-text-image .container {
    padding: 0;
}

.section-text-image .grid-container {
    display: block;
}

.section-text-image .text-col {
    display: flex;
    padding: 4rem 2rem;
    background-color: var(--brown);
}

.section-text-image .text-col .text-container {
    width: 100%;
}

.section-text-image .text-col .text-container .title {
    font-size: 2.5rem;
    color: var(--black);
}

.section-text-image .text-col .text-container .paragraph {
    color: var(--black);
    margin-bottom: 1.5rem;
}

.section-text-image .text-col .text-container .button {
    margin-bottom: 0;
}

.section-text-image .text-col .text-container .grid-container {
    gap: 0;
}

.section-text-image .image-column {
    background-color: var(--lightBeige);
    padding: 0;
    clip-path: polygon(39% 0, 100% 9%, 100% 100%, 0 100%, 0 0);
}

/* Mobile styles for reverse layout (indretning) */
.section-text-image--reverse .grid-container {
    display: flex;
    flex-direction: column;
}

.section-text-image--reverse .text-col {
    order: 1;
    background-color: transparent;
}

.section-text-image--reverse .image-column {
    order: 2;
    background-color: transparent;
    clip-path: polygon(39% 0, 100% 5%, 100% 100%, 0 100%, 0 5%);
    min-height: 400px;
}

.section-text-image--reverse .image-column .media-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.section-text-image--reverse .image-column .media-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.interior-design-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.interior-design-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--black);
}

.interior-design-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 8px;
    height: 8px;
    background-color: var(--black);
}

.section-text-image .location-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-text-image .location-list li {
    color: var(--black);
}

.section-text-image .location-list li .time {
    font-weight: 700;
    margin-right: 0.5rem;
}

.section-text-image .image-column .media-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    max-height: 1000px;
    overflow: hidden;
}

.section-text-image .image-column .media-container img, video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.section-text-image .image-column .media-container img[src$=".svg"] {
    object-fit: cover;
    object-position: left center;
    width: 160%;
    height: 120%;
    padding: 2rem 2rem 2rem 10rem;
}


/* ===================================
   PAGE SECTIONS - Download Form (Mobile)
   =================================== */
.section-download-form {
    background-color: var(--lightBeige);
    padding: 4rem 0;
}

.section-download-form .container {
    padding: 0;
}

.download-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.download-form-content {
    padding: 0 2rem;
}

.download-form-content .title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--black);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.download-form-content .paragraph {
    margin-bottom: 2rem;
    color: var(--black);
}

.prospekt-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    padding: 1.5rem;
    font-size: 0.75rem;
    border: 1px solid white;
    border-radius: 5px;
    background-color: white;
    font-family: inherit;
    margin: 0;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group input[type="tel"]::placeholder {
    color: #4E5248;
    opacity: 0.8;
}

.checkbox-group {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid white;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.checkbox-text {
    font-size: 0.5rem;
    line-height: 1.5;
    color: var(--black);
}

.submit-button {
    margin-top: 1rem;
    cursor: pointer;
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.download-form-image {
    padding: 0 2rem;
}

.download-form-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ===================================
   LAYOUT - Footer (Mobile)
   =================================== */
.site-footer {
    background-color: var(--black);
    padding: 4.375rem 0;
}

.site-footer .container {
    padding: 0 2rem;
}

.site-footer .grid-container {
    display: block;
}

.site-footer .footer-left .button {
    margin-top: 2.5rem;
}

.site-footer .footer-left .button:hover {
    background-color: var(--brown);
}

.site-footer .footer-left .footer-logo {
    margin-bottom: 2.5rem;
}

.site-footer .footer-right {
    margin-top: 1.25rem;
}

.site-footer .employee-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.site-footer .employee-image-wrapper {
    margin-right: 0;
    margin-bottom: 1.25rem;
}

.site-footer .employee-image-wrapper img {
    max-height: 180px;
}

.site-footer .employee-phone-number a {
    color: var(--white);
    text-decoration: underline;
}

.site-footer .employee-phone-number a:hover {
    text-decoration: none;
}

.site-footer .employee-email a {
    color: var(--white);
    text-decoration: underline;
}

.site-footer .employee-email a:hover {
    text-decoration: none;
}

/* Privacy Policy */
.section-privacy-policy {
    padding: 12rem 0;
    color: var(--grey);
    background-color: var(--green);
}

.section-privacy-policy a {
    color: var(--grey);
    text-decoration: underline;
}

.section-privacy-policy a:hover {
    text-decoration: none;
}

.section-privacy-policy .title {
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}


/* Shape */
.shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.shape svg {
    width: 100%;
    height: auto;
}

.triangle {
    display: none;
    position: absolute;
    top: 0;
    left: -1px;
}

.triangle--right {
    left: auto;
    right: -1px;
}


/* Containers */
.container {
    padding: 0 4.5rem;
    max-width: 100.5rem;
    margin: 0 auto;
    position: relative;
}

.flex-container {
    display: flex;
    justify-content: flex-end;
}

.grid-container {
    display: grid;
    gap: 1.25rem;
}

.img-placeholder {
    height: 21.875rem;
    width: 100%;
    position: relative;
}

.img-placeholder img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}


/* Animations */
.animate, section.section {
    transition: all .5s ease-in;
}

.animate.lazyload,
.section.lazyload {
    opacity: .1;
    transform: translateY(30px)
}

.animate.lazyloaded,.animate.loaded,section.lazyloaded,section.loaded {
    opacity: 1;
    transform: translateY(0)
}


/* ===================================
   MEDIA QUERIES - 425px and up
   =================================== */
@media (min-width: 425px) {
    .burger-menu-overlay li {
        font-size: 1.5rem;
    }

    .site-footer .employee-wrapper {
        flex-direction: row;
    }

    .site-footer .employee-image-wrapper {
        margin-right: 1.25rem;
        margin-bottom: 0;
    }
}

/* ===================================
   MEDIA QUERIES - 1024px and up (Desktop)
   =================================== */
@media (min-width: 1024px) {

    /* Header Desktop Styles */
    .site-header .container {
        padding: 0 4.5rem;
    }

    .col-span-2 {
        grid-column: span 2;
    }

    .col-span-3 {
        grid-column: span 3;
    }

    .col-span-4 {
        grid-column: span 4;
    }

    .col-span-5 {
        grid-column: span 5;
    }

    .col-span-6 {
        grid-column: span 6;
    }

    .col-span-7 {
        grid-column: span 7;
    }

    .col-span-8 {
        grid-column: span 8;
    }

    .col-span-9 {
        grid-column: span 9;
    }

    .justify-end {
        justify-content: flex-end;
    }

    .paragraph {
        padding: 0;
    }

    .title {
        font-size: 2.5rem;
    }

    .image-column .triangle {
        height: 300px;
        width: 300px;
        position: absolute;
        top: 0;
        left: -1px;
        display: block;
    }

    .image-column .triangle--right {
        left: auto;
        right: -1px;
    }

    .section-text-image--reverse .container {
        padding-left: 0;
        max-width: 100%;
    }

    .section-text-image--reverse {
        height: 62.5rem;
    }

    .section-text-image--reverse .container {
        height: 100%;
    }

    .section-text-image--reverse .grid-container {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        height: 100%;
    }

    .section-text-image--reverse .image-column {
        grid-column: 1 / span 5;
        order: unset;
        margin: 0;
        padding: 0;
        min-height: unset;
        height: 100%;
        overflow: visible;
        background-color: transparent;
    }

    .section-text-image--reverse .image-column .media-container {
        height: 100%;
        width: 100%;
        clip-path: polygon(95% 0, 100% 38%, 95% 100%, 0 100%, 0 0);
    }

    .section-text-image--reverse .image-column .media-container img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }

    .section-text-image--reverse .text-col {
        grid-column: 6 / span 7;
        order: unset;
        padding: 6rem;
    }

    .interior-design-list {
        margin: 0 0 2.5rem 0;
        margin-top: 0;
        gap: 1rem;
    }

    .interior-design-list li {
        padding-left: 2rem;
        font-size: 1.125rem;
        line-height: 1.5;
    }

    .interior-design-list li::before {
        width: 10px;
        height: 10px;
        top: 0.5rem;
    }

    #byområde .container {
        padding: 0;
    }

    .urban-area-grid {
        /* grid-template-columns: repeat(12, 1fr); */
        gap: 4rem;
    }

    .urban-area-text {
        grid-column: 1 / span 6;
        padding: 0 4rem 0 6rem;
    }

    .urban-area-text .paragraph p {
        font-size: 1.125rem;
    }

    .urban-area-facts {
        grid-column: 7 / span 6;
        padding: 0 4rem;
    }

    .urban-area-list {
        margin: 0 0 2.5rem 0;
        gap: 1rem;
    }

    .urban-area-list li {
        padding-left: 2rem;
        font-size: 1.125rem;
        line-height: 1.5;
    }

    .urban-area-list li::before {
        width: 10px;
        height: 10px;
        top: 0.5rem;
    }

    /* Download Form Section - Desktop */
    .section-download-form {
        padding: 8rem 0;
    }

    .section-download-form .container {
        padding: 0;
    }

    .download-form-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 4rem;
    }

    .download-form-content {
        grid-column: 1 / span 6;
        padding: 0 4rem 0 6rem;
    }

    .download-form-content .title {
        font-size: 3.125rem;
    }

    .checkbox-text {
        font-size: 0.875rem;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"] {
        font-size: 1rem;
        border: 1px solid var(--grey);
    }

    .checkbox-group {
        border-top: 1px solid white;
    }

    .download-form-image {
        grid-column: 7 / span 6;
        padding: 0 6rem 0 0;
    }

    .download-form-image img {
        height: 100%;
    }

    .logo {
        display: block;
        width: 107px;
        height: 113px;
    }

    .img-placeholder {
        height: 40.875rem;
    }

    .grid-container {
        grid-template-columns: repeat(12, 1fr);
    }

    .form-overlay-content {
        flex-direction: row;
        gap: 10rem;
        padding-top: 8rem;
    }

    .form-text-column h2 {
        font-size: 3.125rem;
        padding: 0;
    }

    .form-close-btn {
        top: 3.75rem;
    }

    .list.facts-list {
        margin-top: 0;
    }

    .list.facts-list .facts-list-item {
        width: 80%;
    }

    /* Sections */
    .section-padding {
        padding: 8rem 0;
    }

    .section-check-match {
        padding: 8rem 0;
    }

    .section-hero {
        
        height: 118vh;
    }

    .section-hero__content__title {
        max-width: 65%;
        margin-left: auto;
        margin-right: auto;
    }

    .section-hero__content__subtitle {
        max-width: 60%;
        margin-bottom: 3rem;
        margin-left: auto;
        margin-right: auto;
    }

    .section-hero .shape {
        width: 50%;
        bottom: -10px;
        left: -2px;
    }

    .burger-menu-overlay li {
        font-size: 2.75rem;
    }

    .checkbox-wrapper input[type="checkbox"] {
        transform: scale(1.8);
    }

    .section-text {
        padding: 8.75rem 0;
    }

    .section-text .item {
        grid-column: 5 / span 4;
    }

    .section-sub-hero {
        padding: 8.75rem 0;
        /*height: 65rem;*/
    }

    .section-sub-hero .title {
        font-size: 3.125rem;
    }

    .section-text-image {
        padding: 0;
        height: 62.5rem;
    }

    .section-text-image .container {
        max-width: 100%;
        padding-right: 0;
    }

    .section-text-image .grid-container {
        display: grid;
    }

    .section-text-image .text-col {
        grid-column: span 6;
        padding: 8.75rem 4rem 8.75rem 6rem;
        margin: 0 auto;
        background-color: transparent;
    }

    .section-text-image .text-col .text-container .paragraph {
        margin-bottom: 2.5rem;
    }

    .section-text-image .text-col .text-container .paragraph p {
        font-size: 1.125rem;
    }

    .section-text-image .text-col .text-container .button {
        margin-bottom: 0;
    }

    .section-text-image .location-list {
        margin: 0 0 2.5rem 0;
    }

    .section-text-image .image-column {
        clip-path: none;
        padding: 0;
    }

    .section-text-image .image-column .media-container img[src$=".svg"] {
        object-fit: cover;
        object-position: left;
        width: 89%;
        height: 75%;
        padding: 2rem;
    }

    .section-text-image--reverse .text-col {
        padding: 6rem !important;
        margin: 0;
    }

    .section-text-image .text-col .text-container {
        max-width: 60rem;
    }

    .section-text-image .text-col .text-container .grid-container {
        gap: 2.5rem;
    }

    .section-text-image .text-col .text-container .title {
        font-size: 3.125rem;
    }

    .section-text-image .location-list li {
        font-size: 1.25rem;
    }

    /* .section.section-text-image .image-column {
        grid-column: span 6;
        position: relative;
        margin: 0 auto;
        height: 100%;
        width: 100%;
    } */

    .section-text-image .image-column .media-container {
        height: 100%;
        width: 100%;
    }

    .section-text-image .image-column .media-container img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }

    .section-new-text .title {
        font-size: 3.125rem;
    }

    .section-new-text .grid-container {
        gap: 2.5rem;
    }

    .section-new-text .propositions {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }

    .section-new-text .propositions > div {
        padding: 2rem;
    }

    .section-new-text .propositions .proposition-headline {
        font-size: 6.125rem;
        width: 100px;
        height: 130px;
        background-image: url("data:image/svg+xml,%3Csvg width='100' height='130' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 2 L85 2 L98 53 L98 128 L2 128 L2 53 Z' fill='none' stroke='%23C9A882' stroke-width='2'/%3E%3C/svg%3E");
    }

    .section-new-text .paragraph p {
        font-size: 1.125rem;
    }

    .section-new-text .propositions .proposition-subheadline {
        font-size: 1.75rem;
        max-width: 100%;
    }

    .section-new-text .propositions p {
        font-size: 1.25rem;
    }

    /* Video Section Desktop */
    .section-images {
        padding: 0 0 8rem 0;
        overflow: hidden;
    }

    .section-images .container {
        padding: 0 4.5rem;
    }

    .video-overlay {
        padding: 0;
    }

    .video-overlay-content {
        display: block;
        height: 100%;
    }

    .video-overlay-logo {
        position: absolute;
        top: 2rem;
        left: 2rem;
        width: 120px;
        height: auto;
    }

    .video-overlay-text {
        display: block;
        position: absolute;
        bottom: 2rem;
        right: 2rem;
        left: auto;
        color: white;
        font-size: 2.08vw;
        text-align: right;
        text-transform: uppercase;
        padding: 0;
        width: 24rem;
    }

    .video-mobile-text {
        display: none;
    }

    .video-play-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .video-play-button:hover {
        transform: translate(-50%, -50%) scale(1.1);
    }

    .video-play-button svg {
        width: 62px;
    }

    .section-new-text {
        padding: 8rem 0 4rem 0;
        clip-path: polygon(0 12.5%, 2% 0%, 98% 0%, 100% 12.5%, 100% 100%, 0% 100%);
        margin-top: -19vh;
    }

    .section-new-text .container {
        padding: 0 4.5rem;
    }

    .section-new-text .section-border {
        height: 15%;
    }

    .section-hero__content__title {
        font-size: 3.75rem;
    }

    .section-hero__content__subtitle {
        font-size: 2.5rem;
    }

    .button {
        font-size: 0.875rem;
    }

    .kabelbyen-logo {
        width: 200px;
        height: auto;
        margin-top: -3rem;
    }

    .site-footer {
        padding: 8.75rem 0;
    }

    .site-footer .container {
        padding: 0 4.5rem;
    }

    .site-footer .grid-container {
        display: grid;
    }

    .site-footer .footer-right {
        margin-top: 0;
    }

    .site-footer .employee-image-wrapper {
        margin-right: 2.5rem;
    }

    .fact.mt-6 {
        margin-top: 0;
    }
}



/* ===================================
   DIALOG COMPONENT STYLES
   Add this to your existing css/styles.css
   =================================== */

/* Dialog Base Styles */
.dialog {
    border: none;
    padding: 0;
    max-width: 100%;
    max-height: 100dvh;
    width: 100%;
    height: 100%;
    background: transparent;
    background: var(--dialog-overlay-bg, var(--lightBeige));
    overflow-y: auto; /* Allow scrolling on mobile */
}

.dialog::backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    animation: backdropFadeIn 0.3s ease-out;
}

.dialog__container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto; /* Allow container to scroll if content is too tall */
}

/* Image Wrapper for positioning close button */
.dialog__image-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 3rem; /* Add space at top for close button */
}

/* Close Button */
.dialog__close {
    position: absolute;
    top: 1.3rem;
    right: 4.5rem;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    z-index: 10;
}


/* Dialog Content */
.dialog__content {
    background: var(--dialog-overlay-bg, var(--lightBeige));
    border-radius: 0;
    overflow: visible; /* Allow close button to appear above */
    max-width: 90rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    max-height: none; /* No height restriction */
    position: relative;
}

.dialog--dark .dialog__content {
    color: #F5F3F1;
}

.dialog--light .dialog__content {
    color: #1a1a1a;
}

/* With image layout */
.dialog__content:has(.dialog__image) {
    grid-template-columns: 1fr 1fr;
}

.dialog__image {
    position: relative;
    overflow: hidden; /* Clip image but not the button */
    border-radius: 0;
    width: 100%;
    max-width: 40.75rem; /* 652px */
    aspect-ratio: 652 / 636;
    flex-shrink: 0;
}

.dialog__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: imageZoomIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Form Wrapper */
.dialog__form-wrapper {
    padding: 3rem 4.5rem 3rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: visible; /* No scrolling within form */
    max-height: none; /* Remove any height restrictions */
}

.dialog__text {
    margin-bottom: 2rem;
}

.dialog__text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 0.5s ease-out 0.1s backwards;
}

.dialog__text p {
    font-size: clamp(12px, 2vw + 0.5rem, 18px);
    line-height: clamp(20px, 3vw + 0.5rem, 26px);
    font-weight: 400;
    color: var(--black);
    animation: fadeInUp 0.5s ease-out 0.2s backwards;
}
.dialog__text p:last-child {
    margin-bottom: 0;
}

/* Form Styles */
.dialog__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Dialog Action (for button-only dialogs without forms) */
.dialog__action {
    margin-top: 2rem;
}

.dialog__action .dialog__submit {
    width: auto;
    display: inline-block;
    text-decoration: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    animation: slideInUp 0.4s ease-out backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.15s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.25s; }
.form-group:nth-child(5) { animation-delay: 0.3s; }

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

/* Input Styles */
.dialog__form input[type="text"],
.dialog__form input[type="email"],
.dialog__form input[type="tel"],
.dialog__form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

/* Light theme inputs */
.dialog--light .dialog__form input,
.dialog--light .dialog__form textarea {
    background: white;
    border-color: #ddd;
    color: #1a1a1a;
}

.dialog--light .dialog__form input:focus,
.dialog--light .dialog__form textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dialog--light .dialog__form input::placeholder,
.dialog--light .dialog__form textarea::placeholder {
    color: #666;
}

/* Dark theme inputs */
.dialog--dark .dialog__form input,
.dialog--dark .dialog__form textarea {
    background: #2a2a2a;
    border-color: #444;
    color: #F5F3F1;
}

.dialog--dark .dialog__form input:focus,
.dialog--dark .dialog__form textarea:focus {
    outline: none;
    border-color: #F5F3F1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dialog--dark .dialog__form input::placeholder,
.dialog--dark .dialog__form textarea::placeholder {
    color: #999;
}

.dialog__form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Validation feedback - only show after form submission */
/* .dialog__form.show-validation input:invalid,
.dialog__form.show-validation textarea:invalid,
.dialog__form.show-validation input[type="checkbox"]:invalid {
    border-color: #dc2626;
}

.dialog__form.show-validation input[type="checkbox"]:invalid {
    border-color: #dc2626 !important;
}

.dialog__form input:valid:not(:placeholder-shown),
.dialog__form textarea:valid:not(:placeholder-shown) {
    border-color: var(--black);
} */

/* Form Separator */
.form-separator {
    border: none;
    border-top: 1px solid;
    width: 100%;
    color: var(--white);
    margin: 1rem 0 0;
}
#book-private-tour-dialog .form-separator {
    color: var(--black);
}


/* Checkbox */
.form-group--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 24.375rem;
}

.form-group--checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 27px !important;
    height: 27px !important;
    min-width: 27px !important;
    min-height: 27px !important;
    max-width: 27px !important;
    max-height: 27px !important;
    margin-top: 0.125rem;
    margin-bottom: 0 !important;
    padding: 0 !important;
    border: 1px solid #252525;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 3px;
    flex-shrink: 0;
    
}

.form-group--checkbox input[type="checkbox"]:hover {
    border-color: #333;
}

.form-group--checkbox input[type="checkbox"]:checked {
    background: #252525;
    border-color: #252525;
}

.form-group--checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 0.438rem;
    top: 0.125rem;
    width: 0.5rem;
    height: 0.813rem;
    border: solid white;
    border-width: 0 0.125rem 0.125rem 0;
    transform: rotate(45deg);
}

.dialog--dark .form-group--checkbox input[type="checkbox"] {
    border-color: #F5F3F1;
    background: transparent;
}

.dialog--dark .form-group--checkbox input[type="checkbox"]:hover {
    border-color: white;
}

.dialog--dark .form-group--checkbox input[type="checkbox"]:checked {
    background: white;
    border-color: white;
}

.dialog--dark .form-group--checkbox input[type="checkbox"]:checked::after {
    border-color: #252525;
}

.form-group--checkbox label {
    color: var(--black);
    font-size: clamp(8px, 1vw + 0.25rem, 12px);
    line-height: clamp(10px, 1.2vw + 0.25rem, 14px);
    font-style: normal;
    font-weight: 400;
    cursor: pointer;
}
.form-group--checkbox label {
    max-width: 60%;
    margin-top: 4px;
}

.form-group--checkbox a {
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.form-group--checkbox a:hover {
    opacity: 0.7;
}

.dialog--light .form-group--checkbox a {
    color: #1a1a1a;
}

.dialog--dark .form-group--checkbox a {
    color: #F5F3F1;
}

/* Submit Button */
.dialog__submit {
    padding: 1.063rem;
    border: none;
    border-radius: 4px;
    font-size: clamp(10px, 1vw + 0.4rem, 14px);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 1rem 0 0;
}

.dialog--light .dialog__submit {
    background: white;
    color: #1a1a1a;
}

.dialog--light .dialog__submit:hover {
    background: #1a1a1a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.dialog--dark .dialog__submit {
    background: white;
    color: #1a1a1a;
}

.dialog--dark .dialog__submit:hover {
    background: #1a1a1a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.dialog__submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dialog__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Animations */
@keyframes dialogFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dialogSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes backdropFadeIn {
    from { background: rgba(0, 0, 0, 0); }
    to { background: rgba(0, 0, 0, 0.75); }
}

@keyframes dialogFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes dialogSlideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

@keyframes imageZoomIn {
    from {
        transform: scale(1.1);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Apply animations */
dialog[open] {
    animation: dialogFadeIn 0.3s ease-out;
    
}
@media (min-width: 1024px) {    
    .dialog__container{
        align-items: center;
    }
}
/* Responsive Dialog Styles */
@media (max-width: 1024px) {
    .dialog__content:has(.dialog__image) {
        grid-template-columns: 1fr;
    }
    
    .dialog__image {
        aspect-ratio: 652 / 636;
        max-width: 100%;
    }
    
    .dialog__form-wrapper {
        padding: 2rem;
    }
    
    .dialog__image-wrapper {
        order: -1; /* Put image first on mobile */
        margin-top: 0;
        margin-bottom: 2rem;
        padding: 0 2rem;
    }
    
    .dialog__close {
        right: 1rem;
        top: 1rem;
    }
}

@media (max-width: 768px) {
    .dialog__container {
        padding: 1rem;
    }
    
    .dialog__form-wrapper {
        padding: 1.5rem;
    }
    
    .dialog__image-wrapper {
        padding: 0 1.5rem;
    }
    
    .dialog__image {
        aspect-ratio: 652 / 636;
        max-width: 100%;
    }
    
    .dialog__text h2 {
        font-size: 1.5rem;
    }
    
    .dialog__text p {
        font-size: 0.938rem;
    }
    
    .dialog__close {
        width: 2rem;
        height: 2rem;
        right: 1rem;
        top: 1rem;
    }
}

@media (max-width: 480px) {
    .dialog__container {
        padding: 0.5rem;
    }
    
    .dialog__form-wrapper {
        padding: 1rem;
    }
    
    .dialog__image-wrapper {
        padding: 0 1rem;
    }
    
    .dialog__image {
        aspect-ratio: 652 / 636;
        max-width: 100%;
    }
    
    .dialog__text h2 {
        font-size: 1.25rem;
    }
    
    .dialog__text {
        margin-bottom: 1.5rem;
    }
    
    .dialog__close {
        right: 1rem;
        top: 1rem;
    }
}

dialog[open] .dialog__content {
    animation: dialogSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

dialog.dialog--closing {
    animation: dialogFadeOut 0.3s ease-in;
}

dialog.dialog--closing .dialog__content {
    animation: dialogSlideOut 0.3s cubic-bezier(0.7, 0, 0.84, 0);
}

/* Responsive Styles */
@media (max-width: 968px) {
    .dialog__content:has(.dialog__image) {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto; /* Form first, then image */
    }

    /* Reorder: form-wrapper first, then image-wrapper */
    .dialog__form-wrapper {
        order: 1;
    }

    .dialog__image-wrapper {
        order: 2;
        margin-top: 2rem;
        padding: 0 2rem;
    }

    .dialog__image {
        width: 100%;
        aspect-ratio: 652 / 636;
        max-width: 100%;
    }

    .dialog__form-wrapper {
        padding: 2rem;
    }

    .dialog__text h2 {
        font-size: 1.5rem;
    }
    
    .dialog__close {
        right: 1rem;
        top: 1rem;
    }
}

@media (max-width: 640px) {
    .dialog__container {
        padding: 0;
    }

    .dialog__image-wrapper {
        margin-top: 0; /* Space between form and image */
        padding: 0 1.5rem;
    }

    .dialog__close {
        top: 1rem;
        right: 1.5rem;
        width: 2rem;
        height: 2rem;
        padding: 0.5625rem;
    }


    .dialog__image {
        width: 100%;
        aspect-ratio: 652 / 636;
        max-width: 100%;
    }

    .dialog__form-wrapper {
        padding: 4.5rem 1.5rem 1.5rem;
    }

    .dialog__text h2 {
        font-size: 1.25rem;
    }

    .dialog__text p {
        font-size: 0.75rem;
    }
}

/* Accessibility & Preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .dialog__form input,
    .dialog__form textarea {
        border-width: 2px;
    }
    
    .dialog__submit {
        border: 2px solid currentColor;
    }
}

@media print {
    dialog {
        display: none !important;
    }
}

/* END OF DIALOG COMPONENT STYLES */

/* ============================================
   CHECK MATCH COMPONENT STYLES
   ============================================ */

.section-check-match {
    background: #252525;
    color: var(--white);
    padding: 0;
    overflow: visible;
    height: 100%;
}

.section-check-match .container {
    padding: 0;
    max-width: 100%;
}

.check-match-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
    overflow: visible;
}

/* Left Side - Quiz Form */
.check-match-left {
    background: #252525;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
    overflow: visible;
    display: flex;
    align-items: center;
}

.check-match-content {
    max-width: 37.5rem;
    margin: 0 auto;
}

.check-match-title {
    color: #FFF;
    font-family: Arial, sans-serif;
   
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.check-match-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.75rem, 2vw, 1.125rem); /* 12px to 18px */
    font-style: normal;
    font-weight: 700;
    line-height: 1.625rem; /* 26px */
    margin: 0 0 0.625rem 0;
    transition: opacity 0.3s ease;
}

.check-match-intro {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.75rem, 2vw, 1.125rem); /* 12px to 15px */
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.check-match-question {
    margin-bottom: 3rem;
}

.check-match-question-title {
    margin-bottom: 0.75rem;
    font-size: clamp(0.75rem, 2vw, 1.125rem); /* 12px to 15px */
}

.check-match-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.875rem;
}

.check-match-option {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.30);
    border: none;
    color: var(--white);
    padding: 1.0625rem;
    font-size: 0.875rem;
    cursor: pointer;
    text-align: center;
    font-weight: 700;
    border-radius: 0.25rem;
    font-family: Arial, sans-serif;
    font-style: normal;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    min-width: 4rem;
}

/* .check-match-option:hover {
    background: rgba(255, 255, 255, 0.40);
    transform: translateY(-0.125rem);
} */

.check-match-option--selected {
    background: var(--white);
    color: var(--black);
    border: none;
}

/* Right Side - Result Display */
    .check-match-right::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 95.61 807'%3E%3Cpath fill='%23b69382' d='M95.61 0H80.77L2.01 319.78 0 807h14.42l2.01-486.31z' opacity='.7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    content: "";
    position: absolute;
    top: -20%;
    left: 3%;
    width: 60%;
    height: 120%;
    object-fit: cover;
}

.check-match-right {
    background: #834932;
    padding: 7rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: background 0.6s ease;
    opacity: 0;
    pointer-events: none;
    clip-path: polygon(62% 6%, 100% 0, 100% 100%, 0 100%, 0 2%);
   
    display: none;
}

.check-match-right::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 95.61 807'%3E%3Cpath fill='%23b69382' d='M93.6 319.78 14.84 0H0l79.18 320.69L81.19 807h14.42z' opacity='.7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    content: "";
    position: absolute;
    top: -20%;
    left: 81%;
    width: 60%;
    height: 120%;
    object-fit: cover;
}



@keyframes slidePattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(3.125rem, 3.125rem); }
}

.check-match-right--show {
    opacity: 1;
    pointer-events: auto;
    display: flex;
}

.check-match-result-content {
    max-width: 37.5rem;
    text-align: left;
    scroll-margin-top: 5.4375rem; /* 87px */
    
    position: relative;
    z-index: 1;
}

.check-match-status {
    color: white;
    margin-bottom: 1.875rem;
    opacity: 0;
    transform: translateY(1.25rem);
    transition: all 0.6s ease;
}

.check-match-status--show {
    opacity: 1;
    transform: translateY(0);
}

.check-match-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(1.25rem);
    transition: all 0.6s ease 0.2s;
}

.check-match-description--show {
    opacity: 1;
    transform: translateY(0);
}

.check-match-btn--call {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: all 0.6s ease 0.4s;
    align-self: flex-start;
}

.check-match-btn--call.check-match-btn--show {
    opacity: 1;
    transform: translateY(0);
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .dialog__close {
        position: absolute;
        top: -1rem;
        right: 0;
    }
    .dialog__image {
        max-width: initial;
    }

    .form-separator {
        width: 70%;
    }
    .check-match-question{
        margin-bottom: 1.25rem;
    }
    #checkMatchSubmitBtn{
        margin-top: 2.8rem;
    }

    .section-check-match {
        padding: 0;
        height: 62.5rem;
    }

    .form-group--checkbox label {
        max-width: 100%;
        margin-top: 0; 
    }

    .check-match-grid {
        grid-template-columns: 5fr 7fr;
        gap: 0;
        height: 100%;
    }

    .check-match-left {
        -webkit-clip-path: polygon(95% 0, 100% 38%, 95% 100%, 0 100%, 0 0);
        clip-path: polygon(95% 0, 100% 38%, 95% 100%, 0 100%, 0 0);
        padding: 6rem 4rem 6rem 6rem;
        background: #252525;
    }

    .check-match-content {
        max-width: none;
    }

    .check-match-right {
        padding: 6rem 6rem 6rem 4rem;
        opacity: 1;
        pointer-events: auto;
        display: flex;
        clip-path: none;
        background-size: cover;
        margin-left: -5%;
    }
    
    .check-match-right::before {
        top: -40%;
        left: 10%;
        width: 100%;
        height: 180%;
    }
    
    .check-match-right::after {
        top: -40%;
        left: 73%;
        width: 100%;
        height: 180%;
    }
    
    .check-match-result-content {
        max-width: 60rem;
        padding: 0rem 4rem 0rem 8rem;
    }
    
    /* Removed mobile override - now using clamp for responsive sizing */

    .check-match-options {
        grid-template-columns: repeat(5, 1fr);
    }

    .check-match-description {
        font-size: 1.125rem;
    }
    .book-tour-grid {
        grid-template-columns: 5fr 7fr;
        gap: 0;
    }
    .form-separator {
        margin: 1.5rem 0;
    }

    .book-tour-image {
        order: unset;
        clip-path: polygon(96% 0, 100% 38%, 95% 100%, 0 100%, 0 0);
    }

    .book-tour-content {
        padding: 6rem 6rem;
        order: unset;
    }

    .book-tour-title {
        font-size: 3.125rem;
        line-height: 50px;
    }

    .book-tour-text {
        font-size: 1.125rem;
        line-height: 26px;
    }

    .book-tour-list li {
        font-size: 1.125rem;
        line-height: 26px;
        padding-left: 2rem;
    }
    
    .book-tour-list li::before {
        width: 10px;
        height: 10px;
        top: 0.35em;
    }
}



/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .check-match-right::before {
        animation: none;
    }

    .check-match-option:hover {
        transform: none;
    }

    .check-match-status,
    .check-match-description,
    .check-match-btn--call {
        transition: opacity 0.3s ease;
        transform: none;
    }
}

/* END OF CHECK MATCH COMPONENT STYLES */

/* ===================================
   CHECK MATCH DIALOG - Custom Input Styles
   =================================== */
#check-match-dialog .dialog__form input[type="text"],
#check-match-dialog .dialog__form input[type="email"],
#check-match-dialog .dialog__form input[type="tel"] {
    background: white;
    color: var(--black);
    border-color: rgba(255, 255, 255, 0.3);
}

#check-match-dialog .dialog__form input[type="text"]::placeholder,
#check-match-dialog .dialog__form input[type="email"]::placeholder,
#check-match-dialog .dialog__form input[type="tel"]::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

#check-match-dialog .dialog__form input[type="text"]:focus,
#check-match-dialog .dialog__form input[type="email"]:focus,
#check-match-dialog .dialog__form input[type="tel"]:focus {
    border-color: var(--black);
    outline: none;
}

#check-match-dialog .form-group--checkbox label {
    color: white;
}

#check-match-dialog .form-group--checkbox a {
    color: white;
    text-decoration: underline;
}

/* #check-match-dialog .dialog__form-wrapper {
    padding-right: 4.5rem;
} */
