:root {
    --default-font-size: 13px;
    --slightly-larger-font-size: 16px;
    --quite-larger-font-size: 18px;
    --large-font-size: 24px;
    --largest-font-size: 28px;
}
@view-transition {
    navigation: auto;
}

/* View transition styles for blog article images */
[style*="view-transition-name: poster-"] {
    view-transition-name: var(--view-transition-name);
}

::view-transition-old(poster-0),
::view-transition-old(poster-1),
::view-transition-old(poster-2),
::view-transition-old(poster-3),
::view-transition-old(poster-4) {
    overflow: clip;
}

::view-transition-new(poster-0),
::view-transition-new(poster-1),
::view-transition-new(poster-2),
::view-transition-new(poster-3),
::view-transition-new(poster-4) {
    height: 100%;
    width: 100%;
    object-fit: cover;
    overflow: clip;
}

#article-holder {
    view-transition-name: article-text;
}
#author-card {
    view-transition-name: author-card;
}
#article-content {
    view-transition-name: article-content;
}

@keyframes slideInFromRightFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
    }
}

::view-transition-new(article-text) {
    opacity: 0;
    animation: slideInFromRightFadeIn 0.2s 0.3s ease-out forwards;
}

::view-transition-new(author-card) {
    opacity: 0;
    animation: slideInFromRightFadeIn 0.2s 0.4s ease-out forwards;
}

::view-transition-new(article-content) {
    opacity: 0;
    animation: slideInFromRightFadeIn 0.2s 0.5s ease-out forwards;
}



@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/Montserrat-Regular.ttf') format('truetype');
}

html {
    background: #252926;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    letter-spacing: 1px;
}

body {
    font-family: 'montserrat', sans-serif;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 0;
}

::-webkit-scrollbar {
    width: 0px;
}

#too-small {
    display: none;
}

#loader-overlay {
    position: fixed;
    z-index: 12;
    top: -50vh;
    left: -50vw;
    height: 200vh;
    width: 200vw;
    border-radius: 50%;
    background-color: #13161b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s ease-in-out;
}

#loader-overlay>div {
    display: flex;
    gap: 12px;
}

#loader-overlay div span {
    position: relative;
    height: fit-content;
    overflow: hidden;
}

#loader-overlay h1 {
    color: #13161b;
}

#loader-overlay h1.duplicate {
    color: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    height: fit-content;
    width: fit-content;
    transition: top 0.2s ease;
}

@keyframes waterfall {
    0% {
        opacity: 0;
        -webkit-transform: translateY(-250%);
        transform: translateY(-250%);
    }

    40%,
    60% {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        -webkit-transform: translateY(250%);
        transform: translateY(250%);
    }
}

.waterfall {
    opacity: 0;
    transition: opacity 1.8s ease;
    display: block;
    box-sizing: border-box;
    overflow: visible;
    margin-top: 250px;
}

.waterfall div {
    -webkit-animation: waterfall 1.5s infinite;
    animation: waterfall 1.5s infinite;
    background-color: #fff;
    height: 20px;
    left: 50%;
    margin-top: -10px;
    opacity: 0;
    position: absolute;
    top: 50%;
    width: 20px;
}

.waterfall div:nth-of-type(1) {
    -webkit-animation-delay: 0.25s;
    animation-delay: 0.25s;
    margin-left: -10px;
}

.waterfall div:nth-of-type(2) {
    -webkit-animation-delay: 0.5s;
    animation-delay: 0.5s;
    margin-left: 15px;
}

.waterfall div:nth-of-type(3) {
    -webkit-animation-delay: 0.75s;
    animation-delay: 0.75s;
    margin-left: -35px;
}

.waterfall div:nth-of-type(4) {
    -webkit-animation-delay: 1s;
    animation-delay: 1s;
    margin-left: 40px;
}

.waterfall div:nth-of-type(5) {
    -webkit-animation-delay: 1.25s;
    animation-delay: 1.25s;
    margin-left: -60px;
}

@keyframes shake {
    0% {
        transform: translate(3px, 0);
    }

    50% {
        transform: translate(-3px, 0);
    }

    100% {
        transform: translate(0, 0);
    }
}

h1,
p {
    color: #fff;
}

h1 {
    font-size: 50px;
    font-weight: 800;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

a:active {
    text-decoration: none;
}

a:visited {
    color: #252926;
}

video::-webkit-media-controls {
    display: none !important;
}

video::-moz-media-controls {
    display: none !important;
}

button,
input[type=submit] {
    cursor: pointer;
}

/* Button hover animations */
#login-button, .CTA-button {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.arrow-container {
    position: relative;
    width: 24px;
    height: 24px;
    overflow: hidden;
}

.arrow-icon {
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

.arrow-left {
    transform: translateX(-100%);
}

.arrow-right {
    transform: translateX(0);
}

#login-button:hover .arrow-left, .CTA-button:hover .arrow-left {
    transform: translateX(0);
}

#login-button:hover .arrow-right, .CTA-button:hover .arrow-right {
    transform: translateX(100%);
}

/* Ensure the buttons maintain their layout */
#login-button p, .CTA-button p {
    margin: 0;
}

#pop-up-overlay {
    position: fixed;
    z-index: 5;
    inset: 0;
    background-color: #4f5052de;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.2s ease;
    display: none;
}

#appointment-setter {
    width: fit-content;
}

#calendar-container {
    background-color: #fefefe;
    padding: 2rem;
    border-radius: 10px;
}

.calendar {
    width: 100%;
    margin-top: 0.6rem;
    border-collapse: collapse;
    border: 1px solid #ccc;
}

#week-row {
    background-color: #252926;
    border: 1px solid #252926;
}

#week-row p {
    color: #fefefe;
    user-select: none;
    cursor: unset;
}

.calendar td,
.calendar th {
    width: calc(100% / 7);
    padding: 0;
}

.calendar p {
    padding-block: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.1rem;
}

.calendar td p {
    transition: background-color 0.2s ease;
    border-radius: 50px;
}

.calendar-month {
    display: none;
}

.calendar-month p {
    color: #252926;
    height: 100%;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.current {
    display: block;
}

.calendar-month .past {
    color: #ccc;
    cursor: unset;
    user-select: none;
}

#month-navigation-container {
    width: 100%;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    padding-block: 2rem;
    gap: 14rem;
}

#month-navigation-container>p {
    color: #252926;
    display: flex;
    align-items: center;
    cursor: pointer;
}

#month-navigation-container img {
    margin-inline: 0.5rem;
}

.close-button {
    border: none;
    outline: none;
    cursor: pointer;
    background-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-top: 1rem;
    font-size: 1rem;
    font-family: 'montserrat', sans-serif;
    color: #ccc;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.2rem;
    padding-inline: 0.2rem;
}

.selected-date-display {
    color: #000;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.time-picker-instruction {
    color: #ccc;
    margin-bottom: 1rem;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.time-slot {
    display: block;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 1rem;
    transition: border-color 0.2s ease;
    cursor: pointer;
    width: 14rem;
    box-shadow: 6px 4px 24px -8px rgba(209, 209, 209, 1);
}

.time-slot:hover {
    border-color: #FF7300;
}

.time {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    user-select: none;
}

.duration {
    font-size: 0.8rem;
    color: #666;
    user-select: none;
}

#back-to-date-selector {
    border: none;
    color: #252926;
    font-weight: 500;
    margin-top: 1rem;
}

#confirm-info-container {
    display: block;

}

#date-time-display {
    margin-bottom: 1.5rem;
}

#confirm-info-container input[type=text] {
    margin-bottom: 1rem
}

#confirm-info-container input[type=email],
input[type=text] {
    padding: 0.6rem;
    border: none;
    border-bottom: 1px solid #252926;
    background-color: transparent;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #252926;
    width: 100%;
}

#confirm-info-container input[type=email]:focus,
input[type=text]:focus {
    outline: none;
    border-bottom: 1px solid #ff7300;
}

#appointment-instructions {
    color: #bbb;
    font-size: 0.8rem;
    margin: 1.2rem 0;
}

#confirm-appointment-button {
    padding: 0.8rem 1.6rem;
    border-radius: 30px;
    background-color: #ff7300;
    width: 100%;
    border: none;
    transition: all 0.2s ease-in-out;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #fefefe;
}

#confirm-appointment-button:hover {
    background-color: #ff9900;
}


.main-container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    position: fixed;
    top: 0;
    margin: 0 auto;
    height: fit-content;
    padding-block: 10px;
    inset: 0;
    transition: all 0.4s ease;
    z-index: 11;
}

header .main-container {
    box-shadow: 10px 10px 18px -19px rgba(0, 0, 0, 0.75);
}

.logo {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.logo>img {
    width: 50px;
    height: 50px;
}

.logo h3 {
    font-size: 34px;
}

#main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 1px solid #f3f3f3;
}

#main-nav .logo {
    margin-left: 20px;
}

nav ul {
    display: flex;
    gap: 2rem;
}

#main-nav a,
#main-nav p {
    color: #252926;
    font-size: var(--quite-larger-font-size);
}

.menu {
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: none;
    padding: 0;
    margin-right: 14px;
}

#login-button {
    color: #252926;
    margin-right: 20px;
    padding: 7px 14px;
    padding-right: 10px;
    border: 1px solid #777;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 2px;
}
#login-button p {
    font-size: 16px;
    margin-top: -2px;
}
#login-button img {
    width: 20px;
    height: 20px;
}

.line {
    fill: none;
    stroke: #252926;
    stroke-width: 4;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
        stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line1 {
    stroke-dasharray: 60 207;
    stroke-width: 4;
}

.line2 {
    stroke-dasharray: 60 60;
    stroke-width: 4;
}

.line3 {
    stroke-dasharray: 60 207;
    stroke-width: 4;
}

.opened .line1 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 4;
}

.opened .line2 {
    stroke-dasharray: 1 60;
    stroke-dashoffset: -30;
    stroke-width: 4;
}

.opened .line3 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 4;
}

/* Hero header specific styles */
#hero-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#hero-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 170%;
    background: linear-gradient(rgba(0, 0, 0, 0.4) 50.09%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

#hero-header>div {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

#hero-header #menu-container {
    position: relative;
    z-index: 11;
}

#hero-header>div>ul {
    display: flex;
    align-items: center;
    gap: 20px;
}

#hero-header>div>ul>li {
    border-radius: 10px;
    height: fit-content;
}

#hero-header ul p {
    font-size: 18px;
    margin-top: 6px;
    font-weight: 600;
    color: #fff;
}

#hero-header h2 {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin-right: 30px;
}

#hero-header>div>ul>li>a p {
    position: relative;
    padding-inline: 20px;
    padding-block: 12px;
    transition: background-color 0.3s ease;
    border-radius: 10px;
}

#hero-header>div>ul>li p:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

#hero-header #menu-button svg path {
    stroke: #fff;
}

#hero-header #menu-button.opened .line1,
#hero-header #menu-button.opened .line2,
#hero-header #menu-button.opened .line3 {
    stroke: #fff;
}

#hero-header>div>ul>li>a>span>p::after {
    content: '';
    display: block;
    position: absolute;
    left: -10px;
    top: 12px;
    width: 2px;
    height: 20px;
    background: #fff;
}
#hero-header>div>ul>#first-header-hero-link>a>span>p::after {
    display: none;
}

#intro-text-pre-title {
    font-size: 24px;
    font-weight: 600;
    color: #ff7300;
    margin-bottom: 10px;
}

#hero-section-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 770px;
    background: linear-gradient(rgba(30, 30, 30, 0) 1.09%, rgba(30, 30, 30, 1) 100%);
}

#hero-section-container {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    height: -webkit-fill-available;
    height: 100svh;
    overflow: hidden;
}

#first-section-underlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#first-section-underlay video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#hero-header .line {
    stroke: #fff;
}

#hero-header .opened .line1 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 4;
    stroke: #fff;
}

#hero-header .opened .line2 {
    stroke-dasharray: 1 60;
    stroke-dashoffset: -30;
    stroke-width: 4;
    stroke: #fff;
}

#hero-header .opened .line3 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 4;
    stroke: #fff;
}

#sliding-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: -5;
}

#sliding-menu .underlay {
    background: linear-gradient(90deg, rgba(255, 115, 0, 1) 35%, rgba(255, 158, 0, 1) 100%);
    position: absolute;
    top: 0;
    right: 0;
    bottom: unset;
    left: unset;
    width: 0px;
    height: 0px;
    transform: translate(50%, -50%);
    transition: all 0.8s ease;
    border-radius: 50%;
}

#sliding-menu li {
    margin-top: 16px;
}

#sliding-menu button {
    margin-top: 3rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    position: relative;
}

#sliding-menu button::after {
    content: "";
    position: absolute;
    margin: 0 auto;
    inset: 0;
    left: -30%;
    top: -28%;
    width: 160%;
    height: 150%;
    border: 2px solid #fefefe;
    border-radius: 4rem;
}

#sliding-menu ul {
    z-index: 1;
}

#sliding-menu .underlay.open {
    height: 300vh;
    width: 300vh;
}

#sliding-menu .underlay.wide-open {
    height: 300vw;
    width: 300vw;
}

#sliding-menu li,
#sliding-menu button {
    opacity: 0;
    transition: opacity 0.4s ease;
}

#sliding-menu a,
#sliding-menu button {
    font-size: 1.6rem;
    font-weight: 600;
    color: #fefefe;
    text-decoration: none;
}

#sliding-menu button {
    font-size: 1.5rem;
    font-family: 'montserrat', sans-serif;
}

#hero-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100svh;
}

#first-section-underlay {
    background-color: #3a3c3f;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.underlay>video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    filter: brightness(0.7);
    background-color: gray;
}

.underlay #fallback-image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

#intro-container {
    text-align: start;
    position: absolute;
    bottom: 100px;
    left: 0;
    z-index: 2;
}

#intro-container h1 {
    display: flex;
    gap: 0.8rem;
    font-size: 58px;
}

#intro-container>p {
    margin-top: 8px;
    margin-bottom: 14px;
    font-size: var(--quite-larger-font-size);
    font-weight: 600;
}

#intro-text-carousel-container {
    position: relative;
    height: inherit;
    overflow: hidden;
}

#intro-text-carousel-container>h1 {
    opacity: 0;
}

#intro-text-carousel-container>span {
    position: absolute;
    top: 100%;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: top 0.2s ease-in-out;
}

#intro-text-carousel-container>span:nth-child(1) {
    top: 0;
}

#CTA-buttons-container {
    margin-top: 40px;
}

.CTA-button {
    display: inline-block;
    padding: 10px 22px;
    background-color: #ff7300;
    border-radius: 40px;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.CTA-button:hover {
    background-color: #ff8800;
}

.CTA-button>p {
    font-weight: 600;
    font-size: 14px;
}

.CTA-button>svg {
    width: 30px;
    height: 30px;
    fill: #fdfdfd;
}

#header-about-CTA {
    border: 2px solid #fefefe;
    padding: 18px 36px;
    border-radius: 40px;
    transition: all 0.2s ease-in-out;
}

#header-about-CTA>p {
    font-size: var(--quite-larger-font-size);
}

#header-about-CTA:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#second-section {
    position: relative;
    padding-bottom: 18px;
    background-color: #fafafa;
    padding-top: 40px;
}

#second-section::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 670px;
    background: linear-gradient(rgba(30, 30, 30, 1) 1.09%, rgba(30, 30, 30, 0) 100%);
}

#recent-articles-display {
    margin: 0 auto;
    margin-top: 130px;
    background-color: #252926;
    text-align: center;
    border-radius: 7px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

#recent-articles {
    padding: 20px;
    position: relative;
    display: grid;
    grid-template-rows: 300px, 300px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    overflow: hidden;
}

#recent-articles>#bg-logo {
    position: absolute;
    z-index: -1;
    top: 20px;
    left: -200px;
    height: 700px;
    width: 700px;
}

#recent-articles .article-card:nth-child(2) {
    grid-column: 1 / 4;
    grid-row: 1 / 2;
}

#recent-articles .article-card:nth-child(3),
#recent-articles .article-card:nth-child(4),
#recent-articles .article-card:nth-child(5) {
    grid-row: 2 / 3;
}

#recent-articles .article-card:nth-child(3) {
    grid-column: 1;
}

#recent-articles .article-card:nth-child(4) {
    grid-column: 2;
}

#recent-articles .article-card:nth-child(5) {
    grid-column: 3;
}

.article-card {
    height: 400px;
    text-align: start;
}

.article-card .article-image-holder {
    position: relative;
    border: 1px solid #777;
    height: 280px;
    overflow: hidden;
    cursor: none;
    border-radius: 10px;
}

.article-card img {
    height: 280px;
    width: 100%;
    object-fit: cover;
    opacity: 0;
}

.article-card .under-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 280px;
    width: 100%;
    filter: blur(3px);
    transition: opacity 0.1s ease;
}

.article-card .under-image.active {
    opacity: 1;
}

.article-card .top-image {
    opacity: 1;
    clip-path: circle(0px at 10px 10px);
}

.article-card .clip-border {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #fefefe;
    pointer-events: none;
    transform: translate(-50%, -50%);
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.article-card .clip-border.active {
    visibility: visible;
}

.article-card h2 {
    color: #fefefe;
    font-size: 19px;
    margin-block: 12px;
}

.article-card #timestamp-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.article-card #timestamp-container p {
    font-size: 13px;
    color: #aaa;
}

.article-card #timestamp-container .dot {
    height: 8px;
    width: 8px;
    background-color: #ff7300;
    border-radius: 4px;
}

#most-recent {
    display: flex;
    flex-direction: row;
    height: 360px;
    margin-bottom: 30px;
}

#most-recent>* {
    flex: 1;
}

#most-recent .article-details {
    padding-left: 30px;
    padding-block: 12px;
    max-height: 360px;
}

#most-recent h2 {
    margin-block: 16px;
    font-size: 30px;
}

#most-recent .article-image-holder {
    height: 100%;
}

#most-recent .article-image-holder img {
    height: inherit;
}

#most-recent button {
    border: none;
    font-family: 'montserrat', sans-serif;
    padding: 14px 58px;
    font-size: 14px;
    color: #fefefe;
    font-weight: 600;
    border-radius: 30px;
    margin-top: 30px;
    background-color: #ff7300;
}

.article-details a:visited {
    color: #fefefe;
}

#recent-articles .article-card:nth-child(5) .under-image {
    opacity: 1;
}

#service-description-section {
    margin-block: 150px;
    display: flex;
    align-items: center;
    gap: 150px;
}

#service-description-section svg {
    max-width: 460px;
}

#service-description-text-container,
#app-text-container {
    max-width: 490px;
}

#service-description-section h3,
#app-text-container h3 {
    color: #ff7300;
}

#service-description-section h1,
#service-description-section p,
#app-text-container h1,
#app-text-container p {
    color: #252926;
}

#service-description-section h1,
#app-text-container h1 {
    margin-block: 32px;
}

.top-icon {
    opacity: 0;
    transition: all 0.2s ease;
    transform-origin: center;
}

.stroke {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
}

@keyframes tekenPad {
    to {
        stroke-dashoffset: 0;
    }
}

#app-display-section {
    padding-top: 50px;
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* phone graphic start */

#phone-graphic-container {
    position: relative;
    height: fit-content;
    width: fit-content;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#phone-graphic-color-icon {
    opacity: 0;
    transition: opacity 0.4s ease;
}

#outer-phone-case {
    position: absolute;
    z-index: 2;
    background-color: #f6f9fc;
    inset: 0;
    margin: auto;
    transform: scale(0.9);
    transition: opacity 0.4s ease;
    opacity: 0;
    width: 286px;
    height: 552px;
    padding: 8px;
    box-shadow: 0 50px 100px -20px rgba(50, 50, 93, 0.25), 0 30px 60px -30px rgba(0, 0, 0, 0.3), inset 0 -2px 6px 0 rgba(10, 37, 64, 0.35);
    border-radius: 36px;
}

#inner-phone-case {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

#inner-phone-case * {
    color: #242925;
}

#app-view {
    position: absolute;
    top: 63px;
    left: 6px;
    width: 256px;
    height: 410px;

    border-radius: 12px;
}

#profit-app,
#sales-app {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.phone-stroke,
.full-body,
.initiating-stroke {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    transition: opacity 0.4s ease;
}

@keyframes grow {
    from {
        transform: scale(0.9);
    }

    to {
        transform: scale(1);
    }
}

@keyframes pressed {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(0.9);
    }

    60% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.phone-card {
    margin: 6px;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

#inner-phone-case .category {
    font-size: 16px;
}

#inner-phone-case .subtitle {
    color: #999;
    font-size: 13px;
}

#inner-phone-case .color-box {
    width: 12px;
    height: 12px;
}

#inner-phone-case .back-button {
    transform-origin: 18px 18px;
}

#bottom-nav {
    display: flex;
    justify-content: space-evenly;
    position: absolute;
    bottom: 0;
    width: 100%;
    left: 0;
    padding-top: 8px;
    padding-bottom: 16px;
    background-color: #fff;
    border-top: 1px solid #ccc;
}
#growing-section {
    height: calc(100vh * 3);
    position: relative;
    margin: 0;
    padding-top: 220px;
}
#growing-container {
    background-color: #ff7300;
    width: 800px;
    height: 300px;
    margin: 0 auto;
    border-radius: 30px;
    position: sticky;
    top: calc(50vh - 150px);
    transition: width 0.1s ease-out, height 0.1s ease-out, top 0.1s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#growing-container h2 {
    color: #252926;
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin: 0;
    transition: color 0.3s ease;
}

#growing-container > div {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Text animation classes - positioned outside container initially */
.growing-text-line {
    position: absolute;
    white-space: nowrap;
}

.growing-text-line-1 {
    top: 20%;
    right: 100%;
}

.growing-text-line-2 {
    top: 34%;
    left: 100%;
}

.growing-text-line-3 {
    top: 48%;
    right: 100%;
}

#growing-container.text-white h2 {
    color: #ffffff;
    font-size: 70px;
}

#cost-calculator-section {
    background-color: #eee;
    padding-block: 100px;
}
#cost-calculator-section h1 {
    font-size: 44px;
    max-width: 800px;
    color: #252926;
    margin-inline: auto;
    line-height: 1.3;
    text-align: center;
}
#cost-calculator-section h1 span {
    color: #ff7300;
}
#cost-calculator-section p {
    font-size: 16px;
    color: #252926;
    text-align: center;
    max-width: 800px;
    margin-inline: auto;
    margin-top: 30px;
}
#cost-calculator-section p span {
    font-weight: 600;
}
#cost-intro-buttons-container {
    width: fit-content;
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    margin-inline: auto;
}
#cost-intro-buttons-container a {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 30px;
    background: linear-gradient(180deg, #ff8700 0%, #ff7300 100%);
    color: #fefefe;
    font-weight: 600;
    font-size: 14px;
    padding: 4px;
    padding-right: 15px;
}
#cost-intro-buttons-container a:nth-child(1) {
    background: #242925;
    padding-inline: 40px;
}
#cost-intro-buttons-container a:nth-child(2) img {
    width: 40px;
    height: 40px;
    background-color: #fefefe;
    padding: 7px;
    border-radius: 30px;
}
#partners-carousel-container {
    margin-top: 100px;
    max-width: 900px;
    margin-inline: auto;
    position: relative;
    overflow: hidden;
}

#partners-carousel-container::before,
#partners-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

#partners-carousel-container::before {
    left: 0;
    background: linear-gradient(to right, #eee, transparent);
}

#partners-carousel-container::after {
    right: 0;
    background: linear-gradient(to left, #eee, transparent);
}

.carousel-wrapper {
    display: flex;
    width: 200%;
}

.partners-carousel {
    display: flex;
    gap: 40px;
    align-items: center;
    animation: carousel-scroll 30s linear infinite;
    padding-left: 40px;
}

@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.partner-card {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.partner-card img {
    width: 100%;
    height: 35px;
    object-fit: contain;
}

#alliance-card img {
    height: 45px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

#about-section {
    position: relative;
    margin-top: -50px;
    padding-block: 30px;
    background: #fafafa;
    z-index: -2;
    overflow: hidden;
}

#cost-reduction-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 110px;
}

#cost-reduction-text-container {
    max-width: 500px;
}

#cost-reduction-text-container h3 {
    color: #ff7300;
}

#cost-reduction-text-container h1,
#cost-reduction-text-container p {
    color: #13161b;
}

#cost-reduction-text-container h1 {
    margin-block: 20px;
}

#cost-reduction-text-container ul {
    margin-top: 40px;
}

#cost-reduction-text-container ul li,
#about-text-container li {
    display: flex;
    align-items: center;
    margin-block: 18px;
    gap: 20px;
}

#cost-reduction-text-container ul li div,
#about-text-container li div {
    box-shadow: -5px -5px 6px 0px rgba(255, 255, 255, 0.5), 5px 5px 8px 0px rgba(80, 80, 80, 0.3);
    background-image: linear-gradient(281.44deg, rgba(227, 229, 232, .7) 24.04%, hsla(180, 9%, 98%, .7) 80.08%, rgba(252, 252, 253, .7)), linear-gradient(180deg, #fafafa 43.56%, #f9fafa);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cost-reduction-text-container ul li div img,
#about-text-container li div img {
    width: 24px;
    height: 24px;
}

#about-content-container {
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#about-figure-container {
    position: relative;
    display: flex;
}

#about-figure-container .circle {
    border-radius: 225px;
    background-color: transparent;
}

#outer-circle {
    position: relative;
    height: 450px;
    width: 450px;
    border: 1px dashed #ccc;
}

#middle-circle,
#inner-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 360px;
    width: 360px;
}

#middle-circle {
    border: 1px dashed #ddd;
}

#inner-circle {
    height: 270px;
    width: 270px;
    background-image: url(../assets/images/team/main-about.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.secondary-image {
    border-radius: 50px;
    position: absolute;
    height: 60px;
    width: 60px;
}

#secondary-image-one {
    top: 10%;
    left: 80%;
    height: 40px;
    width: 40px;
}

#secondary-image-two {
    top: 55%;
    left: -5%;
}

#secondary-image-three {
    top: 77%;
    left: 80%;
}

#secondary-image-four {
    left: 15%;
}

#about-text-container {
    max-width: 600px;
}

#about-text-container>* {
    margin-top: 1rem;
}

#about-text-container h3 {
    color: #ff7300;
}

#about-text-container>h1 {
    color: #13161b;
    margin-bottom: 20px;
}

#about-text-container p {
    font-size: var(--slightly-larger-font-size);
    color: #252926;
}

#about-text-container>p {
    margin-top: 0.6rem;
}

#about-text-container ul {
    margin-top: 40px;
}

#contact-section>div:first-child {
    display: flex;
    align-items: center;
    gap: 100px;
    justify-content: space-between;
    margin-top: 200px;
    margin-bottom: 30px;
}

.contact-container,
#contact-form {
    overflow: hidden;
    flex: 1 1 0;
    height: 580px;
    padding: 30px;
    box-shadow: -5px -5px 12px 0px rgba(255, 255, 255, 0.5), 5px 5px 8px 0px rgba(100, 100, 100, 0.3);
    background-color: #fafafa;
    border-radius: 10px;
    border: 1px solid #E8E8E8;
}

.contact-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: var(--larger-font-size);
}

.contact-container>h2 {
    font-size: var(--large-font-size);
}

.contact-container p {
    font-size: var(--slightly-larger-font-size);
}

.contact-container p,
.contact-container h2 {
    color: #13161b;
}

.contact-container h2,
#contact-form h2 {
    font-size: 32px;
}

.contact-container>button {
    padding: 10px 30px;
    border-radius: 30px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'montserrat', sans-serif;
    border: 2px solid #ff7300;
    font-size: var(--slightly-larger-font-size);
    background-color: transparent;
    color: #ff7300;
    font-weight: 600;
}

.contact-container>button>img {
    width: 30px;
    height: 30px;
}

#contact-person-container {
    text-align: center;
}

#contact-person-container span {
    color: #bbb;
    font-weight: 500;
    font-size: var(--slightly-larger-font-size);
}

.contact-container>p {
    font-size: var(--slightly-larger-font-size);
    margin-top: 10px;
    text-align: center;
}

.contact-container>div>img {
    width: 200px;
    height: 200px;
    margin-bottom: 10px;
    border-radius: 100px;
    object-fit: cover;
    border: 1px solid #ccc;
    box-shadow: var(--shadow-distance) var(--shadow-distance) var(--shadow-blur) var(--shadow-dark), calc(-1 * var(--shadow-distance)) calc(-1 * var(--shadow-distance)) var(--shadow-blur) var(--shadow-light);
}

.contact-details-container {
    margin-top: 30px;
}

.contact-details-container img {
    width: 30px;
    height: 30px;
}

.contact-details-container>p {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-details-container>p:first-child {
    margin-top: 0;
}

.contact-container span {
    font-weight: 600;
}

#contact-form>* {
    width: 100%;
    margin-top: 1.3rem;
}

#contact-form>h2 {
    color: #13161b;
    margin-top: unset;
}

#contact-form input {
    border: none;
    color: #13161b;
    padding: 15px;
    background-color: transparent;
    border-bottom: 2px solid #555;
    font-family: 'montserrat', sans-serif;
    font-size: var(--slightly-larger-font-size);
    border-radius: 0;
}

#contact-form input:focus {
    outline: none;
    border-bottom: 2px solid #ff7300;
    color: #13161b;
}

#contact-form input[type=text] {
    font-weight: 500;
}

#contact-form textarea {
    border: none;
    height: 155px;
    padding: 10px;
    color: #13161b;
    border-radius: 10px;
    background-color: #eaeaea;
    font-family: 'montserrat', sans-serif;
    font-size: var(--slightly-larger-font-size);
}

#contact-form input[type=submit] {
    background-color: transparent;
    max-width: 250px;
    border-radius: 30px;
    border: 2px solid #ff7300;
    font-family: 'montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    color: #ff7300;
}

#final-section-container {
    margin-bottom: 150px;
    margin-top: 180px;
    height: fit-content;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-image: linear-gradient(281.44deg, rgba(227, 229, 232, .7) 24.04%, hsla(180, 9%, 98%, .7) 80.08%, rgba(252, 252, 253, .7)), linear-gradient(180deg, #fff 43.56%, #f9fafa);
    padding-left: 30px;
    padding-block: 30px;
    border-radius: 15px;
    box-shadow:
        0px 20px 40px rgba(23, 25, 28, .1), 0px 40px 80px rgba(23, 25, 28, .2);
}

#final-section-container h3 {
    color: #ff7300;
}

#final-section-container h2 {
    color: #13161b;
    line-height: 1.25;
    font-size: 44px;
    margin-block: 14px;
}

#final-section-container p {
    color: #252926;
    line-height: 1.37;
    max-width: 450px;
}

#final-section-container button {
    background-color: transparent;
    color: #ff7300;
    border: 2px solid #ff7300;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: var(--slightly-larger-font-size);
    font-family: 'montserrat', sans-serif;
    cursor: pointer;
    font-weight: 600;
    margin-top: 30px;
}




footer {
    background-color: #4f5052;
    padding-block: 70px;
    position: relative;
    z-index: 1;
}

footer>*,
footer a,
footer a:visited {
    color: #fefefe;
    font-size: var(--slightly-larger-font-size);
}

footer>.main-container>div {
    display: flex;
    justify-content: space-between;
}

#footer-section-one {
    padding-bottom: 2rem;
    border-bottom: 1px solid #fefefe;
    margin-bottom: 2rem;
    align-items: flex-start;
}

#footer-branding {
    display: flex;
    align-items: center;
}

#footer-branding img {
    max-height: 55px;
    margin-right: 6px;
}

footer h3 {
    font-size: 38px;
}

#footer-links-container {
    display: flex;
    gap: 5rem;
}

#footer-links-container h4 {
    margin-bottom: 12px;
}

#footer-links-container li {
    margin-bottom: 0.4rem;
}

.company-detail {
    font-weight: 600;
}

#footer-section-two {
    align-items: flex-end;
}

@media screen and (max-width: 1240px) {
    header {
        padding-inline: 14px;
    }

    .main-container {
        padding-inline: 12px;
    }

    #second-section-main-container {
        padding-top: 30px;
    }

    #recent-articles-display {
        transform: translateY(0);
    }

    #service-description-section {
        gap: 5vw;
        justify-content: space-between;
    }

    #about-content-container {
        gap: 40px;
        /* Remains 40px here, will be 60px when stacking */
    }

}

@media screen and (max-width: 1100px) {
    .article-card .under-image {
        filter: unset;
    }

    .article-card img {
        opacity: 1;
    }

    #second-section {
        padding-bottom: 1px;
    }

    #service-description-section {
        flex-direction: column;
        gap: 10vh;
        margin-block: 100px;
    }

    #service-description-text-container,
    #app-text-container,
    #cost-reduction-text-container,
    #about-text-container {
        max-width: 480px;
    }

    #app-display-section {
        padding-top: 0;
        padding-bottom: 120px;
        flex-direction: column-reverse;
    }

    #app-text-container {
        margin-bottom: 12vh;
    }

    #cost-reduction-container {
        flex-direction: column-reverse;
        gap: 0;
        margin-bottom: 100px;
        margin-top: 40px;
    }

    #cost-reduction-text-container {
        margin: 0 auto;
    }

    #cost-reduction-container>div:not(#cost-reduction-text-container) svg,
    #cost-reduction-container>div:not(#cost-reduction-text-container) img {
        max-width: 100%;
        height: auto;
    }

    #about-text-container {
        margin: 0 auto;
    }

    #about-figure-container {
        margin: 0 auto;
    }
}

@media screen and (max-width: 1070px) {
    #footer-links-container {
        flex-direction: column;
        gap: 28px;
    }
}

@media screen and (max-width: 1042px) {
    #about-content-container {
        flex-direction: column;
        align-items: center;
        gap: 60px;
        /* Increased gap for stacked layout */
    }

    #about-intro {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        max-width: 600px;
    }

    #about-intro span {
        margin: 0 auto;
    }

    #about-intro p {
        text-align: start;
    }

    #contact-section>div:first-child {
        gap: 60px;
    }
}

@media screen and (max-width: 910px) {
    #hero-header h2 {
        margin-top: -15px;
    }

    .nav-links {
        display: none;
    }


    #login-button {
        display: none;
    }

    .menu {
        display: block;
    }
    #main-nav {
        padding-block: 15px;
    }
    #main-nav .logo {
        margin-left: 5px;
    }
    #sliding-menu {
        display: flex;
    }
    #hero-header>div>ul {
        display: none;
    }

    #contact-section {
        margin-bottom: 40px;
    }

    #contact-section>div:first-child {
        display: flex;
        flex-direction: column;
        gap: 40px;
        align-items: center;
        margin-top: 100px;
    }

    .contact-container,
    #contact-form {
        flex: 1 1 auto;
        /* Allow shrink/grow */
        width: 100%;
        /* Full width of parent */
        max-width: 480px;
        /* Limit max width */
        height: auto;
        /* Adjust height to content */
        padding: 25px;
    }

    #contact-form input[type=submit] {
        max-width: unset;
    }

    #final-section-container {
        flex-direction: column-reverse;
        gap: 40px;
        margin: 0 auto;
        margin-top: 60px;
        /* Space from contact boxes block above */
        padding: 25px;
        max-width: 480px;
    }

    #final-section-container>div:first-child {
        /* Text container */
        max-width: 100%;
    }

    #final-section-container>*:last-child {
        /* Graphic container */
        margin: 0 auto;
        /* Center the graphic */
    }

    #final-section-container svg {
        /* Assuming nodes.php outputs an SVG */
        max-width: 100%;
        height: 100%;
        display: block;
        /* Good practice for SVGs */
    }

    #final-section-container button {
        display: block;
        width: 100%;
        min-width: 200px;
    }

    #final-section-container h2 {
        font-size: 36px;
    }

    #contact-graphic-container {
        /* User's existing rule */
        margin-right: 40px;
    }
}

@media screen and (max-width: 888px) {
    #intro-container p {
        font-size: var(--default-font-size);
    }
}

@media screen and (max-width: 842px) {
    #loader-overlay {
        width: 300vw;
        left: -100vw;
    }

    #recent-articles .article-card:nth-child(4) {
        display: none;
    }

    #recent-articles .article-card:nth-child(3) {
        grid-column: 1 / 3;
    }

    #footer-section-two {
        gap: 40px;
    }
}

@media screen and (max-width: 768px) {
    #hero-header>div>div>h2, .logo h3 {
        font-size: 38px;
    }
    #menu-container svg, .menu svg {
        width: 50px;
        height: auto;
    }
    #intro-container h1 {
        font-size: 40px;
    }

    #CTA-button {
        padding: 6px 18px;
    }
}
@media screen and (max-width: 720px) {
    #most-recent h2 {
        font-size: 24px;
    }
}

@media screen and (max-width: 700px) {
    #recent-articles .article-card:nth-child(5) {
        display: none;
    }

    #recent-articles .article-card:nth-child(3) {
        grid-column: 1 / 4;
    }

    /* List items in About/Cost sections */
    #cost-reduction-text-container ul li,
    #about-text-container ul li {
        gap: 10px;
    }

    #final-section-container h2 {
        font-size: 30px;
    }

    #final-section-container p {
        font-size: var(--slightly-larger-font-size);
    }
}

@media screen and (max-width: 668px) {
    #expanding-background-container {
        height: calc(100vw * 2);
        width: calc(100vw * 2);
    }

    #cost-reduction-container>div:not(#cost-reduction-text-container) {
        transform: scale(0.9);
    }
}

@media screen and (max-width: 623px) {
    #cost-calculator-section h1 {
        font-size: 36px;
    }
    
    #cost-calculator-section p {
        font-size: 14px;
    }

    #service-description-section svg {
        width: 80vw;
        height: 80vw;
    }

    footer .main-container {
        padding-inline: 10%;
    }

    #footer-section-one,
    #footer-section-two {
        flex-direction: column;
        align-items: flex-start;
    }

    #footer-branding {
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 600px) {
    #loader-overlay h1 {
        font-size: 40px;
    }

    #recent-article-display {
        width: fit-content;
    }

    #recent-articles {
        justify-content: center;
        height: fit-content;
    }

    #recent-articles .article-card:nth-child(3) {
        display: none;
    }

    #most-recent {
        display: block;
        height: fit-content;
    }

    #most-recent .article-details {
        padding-left: 0;
    }

    #error-message-container {
        max-width: 90%;
    }

    #outer-circle {
        width: 82vw;
        height: 82vw;
    }

    #middle-circle {
        width: 69vw;
        height: 69vw;
    }

    #inner-circle {
        width: 55vw;
        height: 55vw;
    }

    #cost-reduction-container>div:not(#cost-reduction-text-container) {
        transform: scale(0.8);
    }

    #cost-reduction-container {
        gap: 40px;
        margin-block: 60px;
    }

    #cost-reduction-text-container h1,
    #about-text-container h1 {
        font-size: var(--largest-font-size);
    }

    #about-content-container {
        gap: 40px;
        margin-block: 3rem;
    }

    #contact-section>div:first-child {
        gap: 30px;
        margin-top: 60px;
        /* Adjusted space for contact boxes container */
    }

    .contact-container,
    #contact-form {
        padding: 20px;
    }

    .contact-container h2,
    #contact-form h2 {
        font-size: var(--large-font-size);
    }

    .contact-container>button {
        /* "Afspraak met Teun maken" button */
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
        justify-content: center;
    }

    #contact-form input[type=submit] {
        max-width: 100%;
    }

    #final-section-container {
        gap: 30px;
        margin-top: 140px;
        margin-bottom: 100px;
    }

    #final-section-container h2 {
        font-size: calc(var(--large-font-size) + 2px);
        /* e.g. 26px if var is 24px */
    }

    #final-section-container p {
        font-size: var(--default-font-size);
    }

    #final-section-container button {
        font-size: var(--default-font-size);
        padding: 12px 24px;
    }

    .CTA-button {
        padding: 10px 16px;
    }

    .CTA-button>p {
        font-size: 14px;
    }

    .CTA-button>svg {
        width: 24px;
        height: 24px;
    }

    #header-about-CTA {
        padding: 14px 28px;
    }

    #header-about-CTA>p {
        font-size: var(--slightly-larger-font-size);
    }
    #most-recent {
        margin-bottom: 0;
    }
    #most-recent button {
        padding: 10px 40px;
    }

    .next-button {
        padding: 10px 20px;
        font-size: var(--default-font-size);
    }

    #confirm-appointment-button {
        padding: 0.6rem 1.2rem;
        font-size: var(--default-font-size);
    }

    .contact-container>button {
        padding: 8px 20px;
        font-size: var(--default-font-size);
    }

    .contact-container>button>img {
        width: 24px;
        height: 24px;
    }

    #contact-form input[type=submit] {
        font-size: 14px;
    }

    #final-section-container button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media screen and (max-width: 530px) {
    #phone-graphic-container {
        transform: scale(0.9);
    }

    #cost-reduction-container>div:not(#cost-reduction-text-container) {
        transform: scale(0.7);
    }

    #calendar-container {
        padding: 16px;
        width: 95vw;
        height: auto;
    }

    #month-navigation-container {
        padding-block: 0;
        gap: unset;
        justify-content: space-between;
        padding-top: 16px;
    }

    .time-picker-instruction {
        font-size: 14px;
    }

    .time-slot {
        padding: 10px;
        width: 40vw;
    }

    #back-to-date-selector {
        font-size: 12px;
        margin-top: 0;
    }
}

@media screen and (max-width: 514px) {
    #loader-overlay {
        width: 400vw;
        left: -150vw;
    }

    #main-nav .logo {
        margin: 0;
    }

    #intro-container p {
        font-size: 14px;
    }
    #cost-calculator-section h1 {
        font-size: 30px;
    }
    
    #cost-calculator-section p {
        font-size: 13px;
        max-width: 360px;
    }
    #cost-intro-buttons-container a:nth-child(1) {
        padding-inline: 30px;
    }
    #cost-intro-buttons-container a:nth-child(2) img {
        width: 32px;
        height: 32px;
    }
    .secondary-image {
        transform: scale(0.9);
    }

    .company-describer-container>div {
        width: 100%;
    }

    .company-describer-container input[type='text'],
    .company-describer-container input[type='range'] {
        width: 100%;
    }

    .company-describer-container div span {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    #service-description-text-container h3,
    #app-text-container h3 {
        font-size: 18px;
    }
    #hero-header>div>div>h2, .logo h3 {
        font-size: 32px;
    }
    #service-description-text-container h1,
    #app-text-container h1 {
        font-size: 28px;
        margin-block: 24px;
    }

    #service-description-text-container p,
    #app-text-container p {
        font-size: 13px;
    }

    #phone-graphic-container {
        transform: scale(0.8);
    }

    .secondary-image {
        transform: scale(0.8);
    }

    #secondary-image-two {
        left: -8%;
    }

    #secondary-image-four {
        left: 11%;
    }

    #cost-reduction-container>div:not(#cost-reduction-text-container) {
        transform: scale(0.6);
    }

    #contact-graphic-container>* {
        transform: scale(0.8);
    }

    #cost-reduction-text-container h1,
    #about-text-container h1 {
        font-size: var(--large-font-size);
    }

    #cost-reduction-text-container ul li p,
    #about-text-container ul li p {
        font-size: var(--default-font-size);
    }

    #cost-reduction-container {
        margin-block: 40px;
    }

    #about-content-container {
        margin-block: 2rem;
    }

    .contact-container h2,
    #contact-form h2 {
        /* #contact-form h2 will be overridden at 440px by user's more specific rule */
        font-size: calc(var(--large-font-size) - 2px);
        /* 18px */
    }

    .contact-container p,
    .contact-details-container p,
    .contact-container span {
        font-size: var(--slightly-larger-font-size);
        /* 14px */
    }

    .contact-container>button {
        font-size: var(--slightly-larger-font-size);
        /* 14px */
    }

    #contact-form input,
    #contact-form textarea {
        font-size: var(--slightly-larger-font-size);
        /* 14px */
    }

    #final-section-container {
        margin-top: 120px;
    }

    #final-section-container h2 {
        font-size: var(--large-font-size);
        /* 20px */
    }

    #final-section-container p {
        font-size: var(--slightly-larger-font-size);
        /* 14px */
    }

    #final-section-container button {
        font-size: var(--slightly-larger-font-size);
        /* 14px */
    }

    #CTA-buttons-container {
        margin-top: 25px;
    }

    .CTA-button>svg {
        width: 20px;
        height: 20px;
    }

    #header-about-CTA {
        padding: 12px 24px;
    }

    #header-about-CTA>p {
        font-size: var(--default-font-size);
    }

    #most-recent button {
        font-size: 14px;
    }

    .next-button {
        padding: 8px 16px;
        font-size: 12px;
    }

    #confirm-appointment-button {
        padding: 0.5rem 1rem;
        font-size: 12px;
    }

    .contact-container>button {
        padding: 6px 16px;
        font-size: 12px;
    }

    .contact-container>button>img {
        width: 20px;
        height: 20px;
    }

    #contact-form input[type=submit] {
        font-size: 12px;
    }

    #final-section-container button {
        padding: 10px 20px;
        font-size: 12px;
    }
}

@media screen and (max-width: 440px) {

    #intro-container h1 {
        font-size: 32px;
    }

    #CTA-button>svg {
        width: 25px;
        height: 25px;
    }

    #app-display-section {
        padding-bottom: 0px;
    }

    #app-text-container {
        margin-bottom: 1vh;
    }

    #phone-graphic-container {
        transform: scale(0.7);
    }

    #contact-graphic-container {
        margin: 0;
    }

    #phone-graphic-container .static-sized {
        font-size: 28px !important;
    }

    :root {
        --slightly-larger-font-size: 14px;
        --large-font-size: 20px;
    }

    #contact-form h2 {
        /* User's specific rule, takes precedence */
        font-size: 19px;
    }
}

@media screen and (max-width: 420px) {
    .logo img {
        width: 60px;
        height: 60px;
    }

    .logo p {
        font-size: 13px;
        margin-left: 2px;
    }
    #intro-container {
        bottom: 20px;
    }
    #sliding-menu li a,
    #sliding-menu .login-button {
        font-size: 20px;
    }
    #most-recent button {
        margin-top: 0;
    }
    #phone-graphic-container {
        transform: scale(0.6);
    }
}

@media screen and (max-width: 386px) {
    #loader-overlay h1 {
        font-size: 25px;
    }

    #hero-header>div>div>h2, .logo h3 {
        font-size: 32px;
        margin-right: 0;
    }

    #menu-container svg {
        width: 45px;
        height: 45px;
    }
    #error-message-container-first-child {
        margin-block: 8px;
    }

    #error-message-container-second-child {
        height: 100%;
        margin-left: 5vw;
    }

    .secondary-image {
        transform: scale(0.7);
    }

    #secondary-image-four {
        left: 7%;
    }

    .contact-container>p {
        text-align: center;
    }

    .calendar th p {
        font-size: 12px;
    }

    .calendar .day {
        font-size: 12px;
    }

    #month-navigation-container p {
        font-size: 12px;
    }
}

@media screen and (max-width: 372px) {
    #CTA-buttons-container {
        gap: 8px;
    }

    .contact-container h2 {
        font-size: 16px;
    }
}

@media screen and (max-width: 350px) {
    #most-recent h2 {
        font-size: 20px;
    }

    #header-about-CTA p {
        white-space: nowrap;
    }
    #intro-container h1 {
        font-size: 28px;
    }
    #intro-container p {
        font-size: 12px;
    }
    #phone-graphic-container {
        transform: scale(0.5);
    }

    #phone-graphic-container .static-sized {
        font-size: 24px !important;
    }

    /* User's original CSS for these was targeting #about-section p and #about-text-container li */
    /* Ensuring specificity for text within these sections for very small screens */
    #cost-reduction-text-container p,
    #cost-reduction-text-container ul li p,
    #about-text-container p,
    /* General paragraphs in about text container */
    #about-text-container ul li p {
        /* Paragraphs specifically in list items */
        font-size: 13px;
    }


    #contact-graphic-container>* {
        transform: scale(0.6);
    }

    #bubble-one {
        top: 70%;
        left: 12%;
    }

    #bubble-two {
        top: -6%;
        left: -2%;
    }

    #bubble-three {
        left: 65%;
        top: 3%;
    }

    .CTA-button>svg {
        width: 18px;
        height: 18px;
    }

    #header-about-CTA {
        padding: 10px 20px;
    }

    #header-about-CTA>p {
        font-size: 11px;
    }
    #CTA-buttons-container .CTA-button {
        padding: 7px 11px;
    }
    #most-recent button {
        font-size: 12px;
    }
    #most-recent .article-details {
        padding-bottom: 0;
    }
    .next-button {
        padding: 6px 14px;
        font-size: 11px;
    }

    #confirm-appointment-button {
        padding: 0.4rem 0.8rem;
        font-size: 11px;
    }

    .contact-container>button {
        padding: 10px 10px;
        font-size: 14px;
    }

    .contact-container>button>img {
        width: 18px;
        height: 18px;
    }

    #contact-form input[type=submit] {
        font-size: 14px;
    }

    #final-section-container button {
        padding: 10px;
        font-size: 14px;
    }
}

@media screen and (max-width: 336px) {
    header svg, .menu svg {
        width: 50px;
        height: 50px;
    }
    #intro-container p, #most-recent button {
        font-size: 10px;
    }
    #header-about-CTA {
        padding: 9px 11px;
    }
    #secondary-image-two {
        left: -12%;
    }

    #secondary-image-three {
        left: 80%;
    }

    #secondary-image-four {
        left: 2%;
    }
}

@media screen and (max-width: 323px) {
    #loader-overlay h1 {
        font-size: 20px;
    }

    .logo img {
        width: 50px;
        height: 50px;
    }
    #intro-container h1 {
        font-size: 24px;
    }
    #most-recent h2 {
        font-size: 16px;
    }
    .question h3 {
        font-size: 16px;
    }

    .question label {
        font-size: 0.8rem;
    }

    .question button {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 300px) {
    .logo p {
        font-size: 0.6rem;
    }
}

@media screen and (max-width: 290px) {
    #get-quote-main-container h2 {
        font-size: 1.5rem;
    }

    .option-container {
        gap: 7px;
    }
}

@media screen and (max-width: 280px) {
    header {
        display: none;
    }

    section {
        display: none;
    }

    footer {
        display: none;
    }

    body {
        min-height: unset;
        height: 100vh;
        overflow: hidden !important;
        width: 100vw;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #too-small {
        display: block;
        font-size: 90%;
        text-align: center;
        padding: 1rem;
    }

    #pop-up-overlay {
        z-index: -2;
    }

    #appointment-setter {
        display: none;
    }
}

@media screen and (max-height: 430px) {
    header {
        display: none;
    }

    section {
        display: none;
    }

    footer {
        display: none;
    }

    #too-small {
        display: block;
        color: #252926;
        font-size: 90%;
        text-align: center;
        margin-top: 40vh;
        padding: 1rem;
    }
}

.appointment-success-message {
    text-align: center;
    padding: 2rem;
    background-color: #dff0d8;
    color: #3c763d;
    border-radius: 5px;
    margin-top: 10px;
    animation: fadeIn 0.3s ease-in;
    max-width: 700px;
}

.appointment-success-message h2 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.appointment-success-message p {
    margin: 0;
    font-size: 1rem;
    color: #3c763d;
}

.appointment-error-message {
    text-align: center;
    padding: 1rem;
    background-color: #f2dede;
    color: #a94442;
    border-radius: 5px;
    margin-top: 10px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

#form-feedback {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

#form-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

#form-feedback.hide {
    opacity: 0;
    transform: translateY(-10px);
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
    will-change: opacity, transform;
}
.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

#imported-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

/* Responsive adjustments for growing container text */
@media screen and (max-width: 768px) {
    #growing-container h2 {
        font-size: 24px;
    }
}

@media screen and (max-width: 480px) {
    #growing-container h2 {
        font-size: 20px;
    }
}