/* fonts.css */

/* Font Face Declarations */
/* @font-face {
    font-family: 'New Kansas';
    src: url("{% static 'fonts/New-Kansas-Bold.woff' %}") format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Mustica Pro';
    src: url('../fonts/MusticaPro-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
} */

/* variables.css */

/* Root Variables */
:root {
    --base-font-size: 16px;
    --scale: 1.25;

    /* Colors */
    --green-darkest: #123F15;
    --green-dark: #45AB52;
    --green-medium: #2B7B31;
    --green-light: #33863E;
    --green-lighter: #B7E2BA;
    --green-lightest: #D9F3DB;
    --green-pale: #DAEEDC;

    --red-primary: #F44117;
    --red-secondary: #F45833;

    --orange-dark: #E16025;
    --orange-medium: #F79A22;
    --orange-light: #F5EBD8;

    --black: #000000;
    --gray-dark: #616161;
    --gray-medium: #C1C1C1;
    --gray-light: #F3F3F3;
    --white: #FFFFFF;
}

/* reset.css */

/* Resetting some basic styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* base.css */

/* Body styling */
body {
    font-family: 'Mustica Pro', sans-serif;
    background-color: #F5EBD8;
    color: #1A1A1A;
    display: flex;
    justify-content: center;
}

/* Typography Styles */
.h1, .h2, .h3, .h4, .h5 {
    font-family: 'New Kansas', sans-serif !important;
    font-weight: bold;
    color: #1A1A1A;
}

.h1 {
    font-size: calc(var(--base-font-size) * 2);
}

.h2 {
    font-size: calc(var(--base-font-size) * 1.5);
}

.h3 {
    font-size: calc(var(--base-font-size) * 1.25);
}

.h4 {
    font-size: calc(var(--base-font-size) * 1.125);
}

.h5 {
    font-size: var(--base-font-size);
}

/* Mustica Pro Font Classes */
.mustica-sub-20 {
    font-family: 'Mustica Pro', sans-serif;
    font-weight: normal;
    font-size: calc(var(--base-font-size) * 1.25);
}

.mustica-sub-16,
.mustica-text-16 {
    font-family: 'Mustica Pro', sans-serif;
    font-weight: normal;
    font-size: var(--base-font-size);
}

.mustica-sub-16-bold {
    font-family: 'Mustica Pro', sans-serif;
    font-size: var(--base-font-size);
    font-weight: bold;
}

.mustica-sub-14,
.mustica-text-14 {
    font-family: 'Mustica Pro', sans-serif;
    font-weight: normal;
    font-size: calc(var(--base-font-size) * 0.875);
}

.mustica-sub-12,
.mustica-text-12 {
    font-family: 'Mustica Pro', sans-serif;
    font-weight: normal;
    font-size: calc(var(--base-font-size) * 0.75);
}

.mustica-label-10 {
    font-family: 'Mustica Pro', sans-serif;
    font-weight: normal;
    font-size: calc(var(--base-font-size) * 0.625);
}

/* Utility Classes */

/* Text Colors */
.text-black {
    color: var(--black);
}

.text-gray-dark {
    color: var(--gray-dark);
}

.text-gray-medium {
    color: var(--gray-medium);
}

.text-gray-light {
    color: var(--gray-light);
}

.text-white {
    color: var(--white);
}

/* Shadows */
.shadow-gray {
    box-shadow: 0px 4px 17.4px 0px rgba(97, 97, 97, 1);
}

.shadow-green {
    box-shadow: 0px 4px 0px 0px var(--green-darkest);
}

.shadow-red {
    box-shadow: 0px 4px 0px 0px var(--red-primary);
}

/* Container Styling */
.container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1224px;
    margin: 2rem auto;
    justify-content: center;
    width: 100%;
}

/* Header styling */
.header {
    background-color: var(--green-darkest);
    padding: 1rem 0rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
    width: 1224px;
    margin-bottom: 47px;
    }

/* Logo image styling */
.logo-img {
    height: 40px;
    width: auto;
    padding-left: 40px;
}

#user-icon,
#arrow-back-icon {
    display: none;
}

/* Navigation styling */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 350px;
    margin: 0 auto;
    position: relative;
    left: -67px;
}

.steps {
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0;
}

.step {
    color: #9BAA9F;
    font-size: 0.625rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step.active {
    color: var(--white);
}

/* Step Titles and Numbers */
.step-title {
    margin-bottom: 0.5rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #9BAA9F;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 2px solid #9BAA9F;
}

.step.active .step-number {
    background-color: var(--white);
    color: #2C5F2D;
    border: 2px solid var(--white);
}

/* Horizontal line connecting steps */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 75%;
    left: calc(50% + 12px);
    width: 73%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%);
}

/* Buttons */
.next-button,
.submit-email-button,
.close-modal-button {
    background-color: var(--green-darkest);
    color: var(--white);
    border-width: 2px;
    border-style: solid;
    border-color: #45ab52;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: block;
    margin: 24px auto 0 auto; /* Center horizontally with top margin */
}

.login-button-div {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center children horizontally */
    justify-content: center;

}

.login-button {
    display: none !important;
    background-color: transparent;
    border: 2px solid var(--white);
    margin-top: 0;
}


.login-button:hover {
    background-color: var(--white);
    color: var(--green-darkest);
}

.next-button,
.submit-email-button {
    padding: 1rem 8rem;
    font-size: 18px;
    font-weight: 500;
}

.next-button:hover,
.submit-email-button:hover,
.close-modal-button:hover {
    background-color: #2C5F2D;
}

/* Disabled button styling */
.next-button:disabled {
    background-color: #b9bdb9;
    color: #1a1a1a;
    cursor: not-allowed;
    opacity: 0.6;
    border-width: 2px;
    border-style: solid;
    border-color: #b9bdb9;
}

.next-button:disabled:hover {
    background-color: #b9bdb9;
}

/* Input Field Styling */
.input-field {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--white);
    color: #1A1A1A;
    text-align: left !important;
}

.input-field::placeholder {
    color: #9BAA9F;
    text-align: left !important;
}

.input-field:focus {
    outline: none;
    border-color: var(--green-darkest);
    box-shadow: 0 0 5px rgba(18, 63, 21, 0.3);
}

/* Error message styling */
.error-message {
    color: #F45833; /* Updated color */
    font-size: calc(var(--base-font-size) * 0.75); /* Updated font size */
    font-weight: 500; /* Updated font weight (medium) */
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    text-align: center; /* Align text to the left */
}

/* Info Box */
.info-box {
    margin-top: 48px;
    background-color: #E5F4E3;
    padding: 1rem;
    border-radius: 24px;
    color: #1A1A1A;
    box-shadow: 0px 4px 17.4px rgba(0, 0, 0, 0.1);
    align-items: left;
    text-align: left;
}

.info-box > hr {
    opacity: 0.5;
}

.info-box > div {
    display: flex;
    align-items: left;
    gap: 8.5px;
    padding: 0;
    margin: 0;
    text-align: left;
}

.info-box p {
    display: flex;
    flex-direction: column;
    margin: 0.5rem 0;
    color: var(--green-darkest);
    text-align: left;
}

.info-box > div > p > strong {
    font-family: 'New Kansas', sans-serif;
    text-align: left;
}

.info-box > div > p > span {
    text-align: left;
}

/* Highlighted Heading */
.highlighted-heading {
    text-align: center;
    margin: 0 auto 2rem auto;
}

.highlighted-text {
    display: inline-block;
    font-family: 'New Kansas', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--white);
    position: relative;
    padding: 5px 10px;
    z-index: 1;
}

.highlighted-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: orange;
    border-radius: 5px;
    transform: rotate(-3deg);
    z-index: -1;
    box-shadow: 2px 2px 2px rgba(255, 0, 0, 0.8);
}

.normal-text {
    font-family: 'New Kansas', sans-serif;
    font-weight: bold;
    font-size: 2em;
    color: var(--black);
    margin-left: 10px;
}

/* Section Styling */
.section {
    margin-bottom: 32px;
}

.section h3 {
    font-family: 'New Kansas', sans-serif;
    font-weight: bold;
    font-size: 1.2em;
    color: #1A1A1A;
}

.section p {
    color: #1A1A1A;
    margin: 0.5rem 0 1rem;
}

/* Content Wrapper */
.content {
    margin: auto;
    padding: 0 20px;
    max-width: 543px;
    text-align: center;
}

/* Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex; /* Center content */
    justify-content: center;
    align-items: center;
}

.modal p {
    font-size: 0.85em;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.heart-icon {
    height: 4rem;
    margin-right: 1rem;
}

.modal-title {
    font-family: 'New Kansas', sans-serif;
    font-size: 1.25em;
    font-weight: bold;
    margin: 0;
}

.modal-content {
    background-color: var(--white);
    border-radius: 20px;
    padding: 30px 40px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
}


/* Step Footer */
.step-footer {
    text-align: left; /* Aligns text to the left */
    margin: 0 auto;   /* Centers the footer container if needed */
}

/* Button Container */
.button-container {
    display: flex;
    justify-content: center; /* Centers the button horizontally */
}

/* Go Back Link Styles */
/* Go Back Button */
.go-back {
    position: absolute;
    left: 0;                     /* Position it at the left edge */
    top: 50%;
    transform: translateY(-50%); /* Vertically center it within the '.head' container */
}

.go-back a {
    display: flex;
    align-items: center;         /* Vertically align arrow and text */
    text-decoration: none;       /* Remove underline */
    color: var(--black);         /* Set text color to black */
}

.go-back img {
    margin-right: 0.5rem;        /* Space between arrow and 'Retour' text */
    width: 16px;                 /* Adjust icon size if necessary */
    height: auto;                /* Maintain aspect ratio */
}

/* Head Container */
.head {
    position: relative;          /* To position child elements absolutely */
    text-align: center;          /* Center the heading horizontally */
    margin-bottom: 2rem;         /* Adjust as needed */
    padding: 0 1rem;             /* Add horizontal padding if needed */
}

.hidden {
    display: none !important;
}


/* Mobile Styles */
@media (max-width: 767px) {
		.highlighted-heading {
				display: none;
		}
		
    .content {
        text-align: center;
    }

    .container {
        padding: 0;
        margin: 0;
    }

    .header {
        border-radius: 0px;
        flex-direction: column;
        margin-bottom: 0;
    }

    .login-button {
        display: none;
    }

    /* .logo {
        width: 100%;
        display: flex;
        justify-content: space-between;
        margin-bottom: 34px;
        background-color: red;
    } */


    #user-icon,
    #arrow-back-icon {
        display: block;
    }

    /* .highlighted-heading {
        display: none;
    } */

    .go-back {
        display: none;
    }

    .modal-content {
        width: 90%;
        max-width: none;
        border-radius: 15px;
    }

    .thank-you-box {
        width: 90%;
    }
}


/* Mobile Back Button Styles */
.mobile-back-button {
    display: none; /* Hide by default */
}

.mobile-back-button a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.mobile-back-button svg {
    width: 24px;
    height: 24px;
}

.back-text {
    color: #123F15;
    font-size: 16px;
    font-family: 'Mustica Pro', sans-serif;
    font-weight: 700;
    text-align: left;
}

/* Overlay Styling */
.overlay {
    position: fixed; /* Ensure the overlay covers the entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #123F15; /* Your specified color */
    opacity: 0.65; /* Adjust opacity as needed */
    z-index: 1000; /* Ensure it sits above other elements */
    display: none; /* Initially hidden */
}

/* Modal visibility when active */
.modal.hidden .overlay {
    display: none;
}

.modal .overlay {
    display: block;
}

/* Modal Content Z-Index */
.modal-content {
    position: relative; /* Ensure positioning context */
    z-index: 1001; /* Higher than the overlay */
}

.info-box {
    position: relative;
    width: auto;
    height: auto;
    background-color: --green-lightest;
    justify-content: center;
    align-items: flex-start;
    border-radius: 20px;
    gap: 14px;
    display: flex;
    flex-direction: column;
    padding: 16px 10px 16px 10px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }
  .info-box-block {
    position: relative;
    width: auto;
    height: auto;
    justify-content: start;
    align-items: center;
    gap: 10px;
    display: flex;
  }
  .info-box-content {
    position: relative;
    width: 100%;
    height: 100%;
    justify-content: start;
    align-items: start;
    gap: 2px;
    display: flex;
    flex-direction: column;
  }
  .info-box-content-title {
    width: auto;
    height: auto;
    color: #123f15;
    font-size: 16px;
    font-family: New Kansas, "Bold";
    font-weight: 700;
    text-align: left;
    vertical-align: top;
  }
  .info-box-content-paragraph {
    width: 100%;
    height: 100%;
    color: #123f15;
    font-size: 14px;
    font-family: Mustica Pro, "Regular";
    font-weight: 400;
    text-align: left;
    vertical-align: top;
  }

a {
    color: #45AB52;
}

/* Lighter line if both this step and the next step are active */
.step.active:not(:last-child):has(+ .step.active)::after {
    background-color: #FFF;
}

@media (min-width: 468px) {
    .mobilelogo {
        display: none;
    }

    .header-row {
        display: none;
    }
}

/* Show the mobile back button on small screens */
@media (max-width: 767px) {
    /* .steps {
    } */

    .mobilelogo {
        display: flex;
        margin-left: auto;
    }

    /* Optional: Adjust header padding to match Figma's design */
    .header {
        border-radius: 0px;
        flex-direction: row; /* Changed to row for proper alignment */
        padding: 10px 20px; /* Adjusted padding */
        width: 100%; /* Ensure full width on mobile */
        max-width: none;
        height: 50px; /* Remove max-width on mobile */
    }

    /* Adjust the logo container to space between back arrow and logo */
    .header .logo {
        display: flex;
        justify-content: space-between; /* Space between back button and logo */
        align-items: center;
        width: 100%;
        margin-bottom: 0;
        height: 50px;
    }

    /* Adjust Logo Image Size */
    .header .logo-img {
        height: 40px;
        position: absolute;
        margin-left: auto;
        margin-right: auto;
        left: 48%;
        transform: translateX(-50%);
         /* Set desired height */
    }

    /* Display the back arrow icon */
    #arrow-back-icon {
        display: block;
        width: 24px;  /* Adjust size if necessary based on Figma */
        height: auto;
    }

    /* Hide the user icon on mobile */
    #user-icon {
        display: none;
    }

    .mobile-back-button {
        display: flex;
        align-items: center;
    }

    /* Hide the desktop back button if present */
    .go-back {
        display: none;
    }

    /* Adjust the logo and user icon positioning */
    .logo-img {
        margin: 0 auto; /* Center the logo */
    }

    .onboarding-steps {
        margin-bottom: 25px;
    }

    /* Align Logo to the Left on Mobile */
    .header .logo-img {
        margin-right: 0;
        margin-left: auto; /* Remove auto margins */
        align-self: flex-start; /* Align to the start of the flex container */
    }

    /* Make "Continuer" button full width */
    .button-container {
        width: 100%;
    }

    .button-container .next-button {
        font-family: 'Mustica Pro', sans-serif;
        font-weight: 600;
        font-size: 18px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0.75rem 1rem; /* Ensure equal padding on both sides */

    }

    .nav {
        display: none;
    }


    .header-row {
        display: flex;
        justify-content: center; /* Centers content horizontally */
        align-items: center;    /* Centers content vertically */
        background-color: var(--green-darkest); /* Matches the header background */
        width: 100%; /* Full width to align with the header */
        padding: 10px 0; /* Adjust vertical padding for better spacing */
        margin: 0; /* Eliminate gaps between header and header-row */
    }

    .header-row-content {
        max-width: 1224px; /* Match the width of the header */
        width: 100%; /* Make it responsive */
        display: flex;
        justify-content: space-between; /* Space out the steps */
        align-items: center; /* Vertically align content */
        color: var(--white); /* Match text color to header */
        font-size: 14px; /* Adjust font size for better readability */
        padding: 0 20px; /* Add horizontal padding for spacing */
    }

    .steps {
        list-style: none; /* Remove bullets */
        display: flex;
        justify-content: space-between; /* Spread steps evenly */
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .step {
        position: relative;
        text-align: center;
        flex: 1; /* Equal spacing for all steps */
        color: #9BAA9F; /* Default step color */
        position: relative;
        font-size: 0.9rem; /* Adjust step title size */
    }

    .step.active {
        color: var(--white); /* Highlight active step */
    }

    .step-title {
        margin-bottom: 4px; /* Add space between title and number */
        font-size: 10px;
        font-family: 'Mustica Pro', sans-serif;
    }

    .step-number {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        border-radius: 50%; /* Circular number style */
        font-weight: bold;
        background-color: transparent;
        color: #9BAA9F;
        border: 2px solid #9BAA9F;
        font-size: 10px;
        font-family: 'Mustica Pro', sans-serif;
    }

    .step.active .step-number {
        background-color: var(--white); /* Highlight active number */
        color: var(--green-darkest);
        border-color: var(--white);
    }

    .step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 75%; /* Vertically center the line */
        left: calc(50% + 8px); /* Adjust for spacing */
        width: calc(100% - 16px); /* Reduce width for alignment */
        height: 1px; /* Line thickness */
        background-color: rgba(255, 255, 255, 0.4);
        z-index: 0; /* Ensure it is below the text */
    }
}
