@import url('/fonts/stylesheet.css');
@import url('/variables.css');

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    font-weight: 550;
    background-color: var(--bg-light);
    color: var(--gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100vw;
}


.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--page-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.container-fullwidth {
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/* svg styles */

.svg-accent {
    fill: var(--primary-accent);
}

.svg-dark {
    fill: var(--gray-dark);
}

.svg-yarn {
    fill: var(--bg-light);
}

.svg-darkstroke {
    fill: none;
    stroke: var(--gray-dark);
    stroke-miterlimit: 10;
    stroke-width: 3px;
}

.svg-yellowstroke {
    fill: none;
    stroke: var(--secondary-accent-dark);
    stroke-miterlimit: 10;
    stroke-width: 3px;
}

.svg-white {
    fill: #fff;
}

.svg-yellow {
    fill: var(--secondary-accent);
}

.svg-teal {
    fill: var(--primary-accent-dark);
}

.svg-pastel {
    fill: var(--primary-accent-light);
}

.svg-mask {
    mask: url(#mask);
}

.svg-clip {
    filter: url(#luminosity-noclip);
}

@keyframes float-1 {
    0% {
        transform: translateY(0) rotate(-10deg);
    }

    100% {
        transform: translateY(-18px) rotate(10deg);
    }
}

/*  */

.thankyou-flex {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.thankyou-banner {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/*  */


h1 {
    font-family: var(--font-heading);
    font-size: var(--font-size-large);
    letter-spacing: 1px;
}

h2 {
    font-family: var(--font-heading);
    font-size: var(--font-size-medium);
    margin: 4rem 0 1.2rem 0;
    letter-spacing: 3px;
}

h3 {
    font-family: var(--font-title);
    font-size: var(--font-size-small);
    margin: 0.6rem 0 0 0;
    letter-spacing: 1px;
}

h4 {
    font-family: var(--font-title);
    font-size: var(--font-size-caption);
    margin: .5rem 0 .2rem;
}

p {
    margin-bottom: 0.8rem;
}

a {
    color: var(--primary-accent-dark);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-accent);
}

/* Logo */

.nav-logo-stroke {
    fill: none;
    stroke: var(--bg-light);
    stroke-miterlimit: 10;
    stroke-width: 8px;
}

.nav-logo-fill {
    fill: var(--bg-light);
}

.nav-logo-fillstroke {
    fill: var(--bg-light);
    stroke: var(--bg-light);
    stroke-miterlimit: 10;
    stroke-width: 2px;
}

/* buttons */

.button-group {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.arrow-group {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-top: 1.5rem;
}

button {
    border-radius: var(--border-radius);
    border: none;
    font-family: var(--font-button);
    font-size: var(--font-size-caption);
    letter-spacing: 2px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease-out;
    cursor: pointer;
}

.button-primary {
    background: var(--gray-dark);
    color: var(--bg-light);
    padding: 0.75rem 2rem .5rem;
}

.button-primary:hover {
    background: var(--primary-accent-dark);
    color: var(--bg-light);
}

.button-secondary {
    background: var(--secondary-accent);
    color: var(--gray-dark);
    padding: 0.65rem 1.4rem .45rem;
}

.button-secondary:hover {
    background: var(--primary-accent-light);
}

.button-primary-ghost {
    background: transparent;
    border: 2px solid var(--primary-accent-dark);
    color: var(--primary-accent-dark);
    padding: 0.75rem 2rem .5rem;
    box-shadow: none;
}

.button-primary-ghost:hover,
.button-primary-ghost:focus {
    background: var(--primary-accent-dark);
    color: var(--bg-light);
}

.button-primary-icon {
    background: var(--primary-accent-light);
    color: var(--gray-dark);
    height: 56px;
    width: 56px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s, box-shadow 0.2s;
}

.button-primary-icon i {
    color: var(--gray-dark);
}

.button-primary:disabled,
.button-secondary:disabled,
.button-primary-icon:disabled {
    background: var(--bg-medium);
    cursor: not-allowed;
}

.button-primary-icon:hover:not(:disabled) {
    background: var(--bg-light);
    box-shadow: var(--shadow-md);
}


/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-accent);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease-out;
    z-index: 10;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-accent);
}

.carousel-nav:hover {
    background: var(--primary-accent);
    color: var(--bg-light);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}


body.touch-device .carousel-nav {
    display: none !important;
}


/* Pagination Dots */
.carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-light);
    cursor: pointer;
    transition: all 0.3s ease-out;
}

.pagination-dot.active {
    background: var(--primary-accent);
    transform: scale(1.3);
}

.pagination-dot:hover {
    background: var(--primary-accent-light);
    transform: scale(1.1);
}



/* Custom Checkbox and Radio Button Styling */

input[type="checkbox"] {
    display: none;
}

input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover,
input:-webkit-autofill:active {
    -webkit-text-fill-color: #333;
    -webkit-box-shadow: 0 0 0 1000px rgba(137, 200, 189, 0.1) inset;
}


input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-accent);
    outline: none;
}

input,
textarea,
select {
    font-size: var(--font-size-body);
    font-weight: 550;
    border: 2px solid var(--primary-accent-light);
    font-family: var(--font-body);
    color: var(--gray-dark) !important;
    border-radius: var(--inputfield-radius);
    padding: 0.7rem 1rem;
    width: 100%;
    margin-bottom: 1rem;
    background-color: #fff;
    transition: border-color 0.2s;
}

.custom-checkbox,
.custom-radio {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    position: relative;
    cursor: pointer;
}

.custom-checkbox input[type="checkbox"],
.custom-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

.custom-checkbox .checkmark,
.custom-radio .radio {
    display: inline-block;
    flex-shrink: 0;
    width: 1.3em;
    height: 1.3em;
    margin-right: 0.8rem;
    background: var(--bg-light);
    border: 2px solid var(--primary-accent-light);
    position: relative;
    vertical-align: top;
    margin-top: 0.15em;
}

.custom-radio .radio {
    border-radius: 50%;
}

.custom-checkbox .checkmark {
    border-radius: 0.3em;
}

.custom-radio input[type="radio"]:checked+.radio::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-accent-dark);
    border-radius: 50%;
    width: 0.65em;
    height: 0.65em;
}

.custom-checkbox input[type="checkbox"]:checked+.checkmark::after {
    content: '';
    position: absolute;
    left: 20%;
    top: 40%;
    width: 0.4em;
    height: 0.7em;
    border: solid var(--primary-accent-dark);
    border-width: 0 0.2em 0.2em 0;
    transform: rotate(45deg) translate(-50%, -50%);
}

.custom-checkbox input[type="checkbox"]:focus+.checkmark,
.custom-radio input[type="radio"]:focus+.radio {
    outline: 2px solid var(--secondary-accent);
    outline-offset: 2px;
}

.custom-checkbox:hover .checkmark,
.custom-radio:hover .radio {
    border-color: var(--primary-accent-dark);
}

.custom-checkbox label,
.custom-radio label {
    line-height: 1.5;
    cursor: pointer;
}

/* FORMS */

/* Checked state for visual feedback */
input[type="radio"]:checked+span,
input[type="checkbox"]:checked+span {
    color: var(--primary-accent-dark);
}

/* Remove default outline on label click */
.addons-table label:active {
    outline: none;
    border-color: var(--primary-accent);
}

.addons-group.disabled,
.addons-group[aria-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(0.2);
}

.addons-group.disabled label,
.addons-group[aria-disabled="true"] label {
    cursor: not-allowed;
}


input.error,
textarea.error,
select.error {
    border-color: var(--error);
    background: var(--bg-light);
}

/* Error styling for checkboxes */
input[type="checkbox"].error {
    outline: 2px solid var(--error);
    outline-offset: 2px;
}

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

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
    box-sizing: border-box;
}

.newsletter-form label {
    font-size: var(--font-size-micro);
    text-align: left;
}

.newsletter-form button {
    margin-top: 1rem;
}


/* SCROLL */

.scroll-nav-btn {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 100;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s, box-shadow 0.2s;
    opacity: 0.92;
}

.scroll-nav-btn:hover,
.scroll-nav-btn:focus {
    background: var(--secondary-accent);
    box-shadow: var(--shadow-lg);
    outline: none;
}

.scroll-nav-btn i {
    color: var(--gray-dark);
    transition: transform 0.3s cubic-bezier(.4, 2, .6, 1);
}

.scroll-nav-btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}


/* %%%%%%%%%%%%%%%%%%%% */

.modal-success h4 {
    font-family: var(--font-heading);
    font-size: var(--font-size-small);
    margin-bottom: 2rem;
    padding: 0 4rem;
}

.modal-success p {
    font-size: var(--font-size-caption);
    font-weight: 700;
    padding: 0 4rem;
}

#close-thank-you {
    margin: 3rem 4rem 2rem 4rem;
}

.thank-you .button-group {
    justify-content: left;
}

.thank-you .button-group img {
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    width: 200px;
    height: auto;
}


/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */
/* loading */


#loadingPopup {
    display: none;
}

.loading-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-popup-content {
    background: #fff;
    padding: 2rem 3rem;
    border-radius: 10px;
    font-size: 1.2rem;
    text-align: center;
    box-shadow: var (--shadow-md);
    position: relative;
}

.loading-spinner {
    display: inline-block;
    animation: spin 2s linear infinite;
    width: 50px;
    /* adjust size */
    height: 50px;
}

.loading-message {
    margin-top: 1.2rem;
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */

/* Action Banner */
.action-banner {
    background: var(--secondary-accent);
    padding: 3rem 0 2.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.action-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.action-content p {
    font-size: var(--font-size-caption);
    margin-bottom: 2rem;
}

.action-line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2rem;
    width: 100vw;
    height: 125px;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.action-line svg {
    height: 100%;
    min-width: 3250px;
    width: 3250px;
    max-width: none;
    display: block;
}

/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */

@media (max-width: 768px) {
    .scroll-nav-btn {
        width: 44px;
        height: 44px;
        right: 1rem;
        bottom: 1rem;
    }

    .custom-checkbox,
    .custom-radio {
        align-items: flex-start;
    }

    .header-container .svg-yarn {
        fill: var(--gray-dark);
    }

}