@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

:root {
    --primary: #fa6b05;
}

body {
    overflow: hidden !important;
}

* {
    font-family: "Inter";
}

a {
    text-decoration: none;
}

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background-color: var(--primary); /* Customize the color as needed */
    width: 0%;
    z-index: 1000;
}

/* Custom Body Styling */
.custom-body {
    height: 100%;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity)); /* bg-gray-50 */
    position: relative;
}

/* Fade-up Animation */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s, transform 0.3s;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Container Styling */
.custom-container {
    width: 100vw;
    max-width: 36rem;
    margin: 0 auto;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media screen and (max-width: 640px) {
    .custom-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        max-width: 100%;
        width: auto;
    }

    .custom-container button,
    .custom-container a {
        display: none !important;
    }

    .navigation-buttons {
        background-color: #6b72800d;
        width: 100%;
        position: fixed;
        bottom: 0 !important;
        right: 0 !important;
        padding: 1.5rem 0;
    }

    .navigation-buttons-inner {
        margin: 0 1rem;
    }

    .navigation-buttons .nav-next-section {
        width: 100%;
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.5rem;
        text-align: center;
        padding: 0.5rem 1rem;
    }

    .navigation-buttons .nav-next-section svg,
    .navigation-buttons .nav-prev-section svg:first-child {
        display: none;
    }

    .navigation-buttons svg.mobile {
        display: block;
        height: 1.5rem;
        width: 2.5rem;
    }

    .navigation-buttons .nav-next-section span {
        display: block;
    }
}

/* Content Styling */
.custom-content {
    display: block;
    font-size: 1.125rem;
    color: rgb(55 65 81 / 1);
}

.custom-content .required {
    mix-blend-mode: screen;
    color: rgba(185 28 28 / 1);
    top: -0.5em;
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

@media (min-width: 640px) {
    .custom-content {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .custom-content {
        font-size: 1.5rem;
    }

    .final-section .custom-content {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
}

@media (min-width: 1280px) {
    .custom-content {
        font-size: 1.875rem;
    }
}

@media (min-width: 768px) {
    .final-section .custom-content {
        font-size: 1.875rem;
        line-height: 2.5rem;
    }
}

.custom-content-color {
    color: #374151;
}

.custom-text {
    color: rgb(75 85 99 / 1);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .custom-text {
        font-size: 1rem;
    }
}

/* Radio Styling */
.custom-radio {
    display: inline-block;
    cursor: pointer;
}

.custom-radio-button {
    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 1px solid #000000;
    padding: 0.75rem;
    border-radius: 0.5rem;
    max-width: 22rem;
    min-width: 8rem;
    position: relative;
}

.custom-radio-button label {
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding-right: 1rem;
    padding-left: 0.25rem;
}

.custom-radio-button:hover {
    opacity: 0.8;
}

.custom-radio-button.error {
    border-color: #dc2626;
}

.custom-radio-button svg {
    height: 1.25rem;
    width: 1.25rem;
}

.custom-radio-button svg.hidden {
    display: none;
}

.custom-radio-error {
    color: rgb(153 27 27 / 1);
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1rem;
    padding: 0.375rem 0.75rem;
    background-color: rgb(254 226 226 / 1);
    border-radius: 0.375rem;
    margin-bottom: 1rem;

    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    gap: 0.5rem;
}

.custom-radio-error svg {
    height: 1rem;
    width: 1rem;
}

/* Next Button */
.custom-container .button {
    margin-top: 2.5rem;
}

.custom-container .button .next-section {
    background-color: var(--primary);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    color: white;

    display: inline-flex;
    align-items: center;
    column-gap: 10px;
}

.custom-container .button .next-section:hover {
    opacity: 0.8;
}

.custom-container .button .next-section  svg {
    height: 1.5rem;
    width: 1.5rem;
}

.custom-container .button .loading {
    width: 1.5rem;
    height: 1.5rem;
    border: 7px solid #000000;
    border-top: 7px solid var(--primary);
    border-radius: 100vmax;
    position: relative;
    animation: spin 1s linear infinite;
}

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

/* Submit Button */
.custom-container .submit-button {
    display: flex;
    align-items: center;
    column-gap: 15px;
}

.custom-container .submit-button button {
    column-gap: 5px;
}

.custom-container .submit-button svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
}

.custom-container .submit-button span:not(.submit-button button span) {
    display: inline-block;
    font-size: .75rem;
    line-height: 1rem;
}

/* Button Styling */
.custom-button {
    background-color: #d1d5db;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin: 0.5rem;
}

.custom-button:hover {
    background-color: #9ca3af;
}

/* Last Section */
.final-section {
    text-align: center;
}

.final-section .button,
.final-section .custom-text,
.final-section p {
    margin: 0;
}

.final-section p {
    margin: 3rem 0 2.5rem 0;
}

.final-section .custom-content {
    font-size: 2.25rem;
    font-weight: 500;
}

.final-section .button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Navigation buttons styling */
.navigation-buttons {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 999;
}

.navigation-buttons-inner {
    gap: 5px;
    display: flex;
}

.navigation-buttons .mobile {
    display: none;
}

.navigation-buttons span {
    display: none;
}

.navigation-buttons .submit-button {
    width: 100%;
    justify-content: center;
    column-gap: 10px;
}

.navigation-buttons .submit-button span {
    display: block !important;
}

.custom-button {
    background-color: var(--primary);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5rem;
    padding: 0.5rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    margin: 0;

    cursor: pointer;
    display: inline-flex;
    align-items: center;
    color: white;
}

.custom-button svg {
    height: 1rem;
    width: 1rem;
}

.custom-button:hover {
    opacity: 0.8;
    background-color: var(--primary);
}

.hidden {
    display: none !important;
}

.fp-watermark {
    display: none;
}

.shake {
    animation: shake 0.3s;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-5px);
    }
    100% {
        transform: translateX(0);
    }
}
