@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


/* =========================================================
   GENERAL
========================================================= */

body {
    background-color: #ffffff;
}


* {
    margin: 0;
    padding: 0;

    box-sizing: border-box;

    font-family: 'Roboto', sans-serif;

    scroll-behavior: smooth;
}


/* =========================================================
   ORGANIZATION OF SECTIONS
========================================================= */

#box {
    display: flex;

    flex-flow: column;

    height: 100vh;
}


.box-container {
    display: contents;
}


/* =========================================================
   HEADER
========================================================= */

#header {
    position: sticky;

    z-index: 0;

    flex: 0 1 auto;
}


.header {
    margin-left: 10%;
    margin-top: 7.5%;
}


/* =========================================================
   MAIN
========================================================= */

#main {
    margin: auto;

    flex: 1 1 auto;

    display: flex;

    justify-content: space-around;
}


.main {
    width: 50%;

    display: flex;

    align-items: center;
}


.main h6 {
    margin: 1rem 0;
    margin-left: 3px;

    font-size: 1rem;
    font-weight: normal;

    line-height: 1.5rem;
}


/* =========================================================
   FOOTER
========================================================= */

#footer {
    width: 80%;

    flex: 0 1 0;

    font-size: 1rem;

    display: flex;

    flex-flow: row;

    margin-bottom: 7.5%;
    margin-left: 10%;
}


.footer {
    display: contents;
}


.copyright {
    text-align: left;

    flex: 0 1 auto;
}


/* =========================================================
   UTILITY
========================================================= */

.roboto-100 {
    font-family: "Roboto", sans-serif;

    font-optical-sizing: auto;

    font-weight: 100;

    font-style: normal;

    font-variation-settings:
        "wdth" 100;
}


/* =========================================================
   CHAT TEST
========================================================= */

.chat-page {
    max-width: 800px;

    margin: 40px auto;

    font-family: Arial, sans-serif;
}


.chat-box {
    padding: 20px;

    border: 1px solid #ccc;
    border-radius: 12px;

    background: #f8f8f8;
}


.message {
    max-width: 70%;

    padding: 12px 16px;

    margin: 10px 0;

    border-radius: 12px;
}


.message.user {
    margin-left: auto;

    background: #d8ecff;

    text-align: right;
}


.message.bot {
    margin-right: auto;

    background: #ffffff;
}


.chat-form {
    display: flex;

    gap: 10px;

    margin-top: 20px;
}


.chat-form input {
    flex: 1;

    padding: 12px;
}


.chat-form button {
    padding: 12px 20px;
}


/* =========================================================
   ACCOUNT
========================================================= */

.account-container {
    width: 100%;

    max-width: 650px;

    margin: 40px auto;
}


.welcome-section {
    margin-bottom: 25px;

    text-align: center;
}


.welcome-section h1,
.account-card h1,
.account-card h2 {
    margin-bottom: 12px;
}


.welcome-section p,
.account-card p {
    margin-bottom: 20px;

    line-height: 1.6;
}


.account-card {
    margin-bottom: 24px;

    padding: 30px;

    background-color: #ffffff;

    border: 1px solid #d7ddd8;
    border-radius: 10px;
}


.registration-card {
    max-width: 600px;

    margin-right: auto;
    margin-left: auto;
}


.account-form {
    margin-top: 24px;
}


.form-group {
    margin-bottom: 20px;
}


.form-group label {
    display: block;

    margin-bottom: 8px;

    font-weight: 700;
}


.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 11px;

    font-size: 1rem;

    border: 1px solid #aeb8b2;
    border-radius: 5px;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #245c47;

    outline: 2px solid rgba(36, 92, 71, 0.15);
}


.primary-button,
.primary-link,
.secondary-link {
    display: inline-block;

    padding: 11px 18px;

    font-size: 1rem;

    text-decoration: none;

    border: none;
    border-radius: 5px;

    cursor: pointer;
}


.primary-button,
.primary-link {
    color: #ffffff;

    background-color: #245c47;
}


.secondary-link {
    color: #245c47;

    background-color: #d9dedb;
}


.account-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}


.error-message,
.field-error {
    color: #a12622;
}


.error-message {
    padding: 12px;

    background-color: #fbe9e8;

    border: 1px solid #e2b7b5;
    border-radius: 5px;
}


.field-error {
    margin-top: 6px;
    margin-bottom: 0;

    font-size: 0.9rem;
}


.account-footer {
    margin-top: 22px;
    margin-bottom: 0;
}


/* =========================================================
   ACCOUNT PAGE BACKGROUND
========================================================= */

.account-page {
    min-height: 100vh;

    margin: 0;

    padding: 30px 20px;

    background:
        linear-gradient(
            180deg,
            #245c47 0%,
            #1f503f 100%
        );
}


/* =========================================================
   HOʻOLAUNA MULTI-STEP FORM
========================================================= */

.wizard-container {
    width: 100%;

    max-width: 760px;

    margin: 20px auto 60px;
}


.wizard-heading {
    margin-bottom: 30px;

    color: #ffffff;

    text-align: center;

    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.25);
}


.wizard-heading h1 {
    margin: 5px 0 12px;

    font-size: 2.4rem;
}


.wizard-heading p {
    max-width: 620px;

    margin: 0 auto;

    line-height: 1.6;
}


.eyebrow {
    margin-bottom: 5px;

    font-size: 0.85rem;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


/* =========================================================
   PROGRESS BAR
========================================================= */

.progress-container {
    position: relative;

    display: flex;

    justify-content: space-between;

    margin-bottom: 30px;
}


.progress-line {
    position: absolute;

    top: 20px;
    right: 8%;
    left: 8%;

    height: 4px;

    overflow: hidden;

    background: #d7ddd8;
}


.progress-fill {
    width: 0;
    height: 100%;

    background: #5c3b78;

    transition: width 0.3s ease;
}


.progress-step {
    position: relative;

    z-index: 1;

    width: 20%;

    text-align: center;
}


.progress-step span {
    display: flex;

    width: 42px;
    height: 42px;

    margin: 0 auto 8px;

    align-items: center;
    justify-content: center;

    color: #526057;

    font-weight: 700;

    background: #ffffff;

    border: 3px solid #d7ddd8;
    border-radius: 50%;
}


.progress-step.active span {
    color: #ffffff;

    background: #5c3b78;

    border-color: #5c3b78;
}


.progress-step.completed span {
    color: #ffffff;

    background: #245c47;

    border-color: #245c47;
}


.progress-step small {
    display: block;

    font-size: 0.76rem;
    font-weight: 600;
}


/* =========================================================
   FORM CARD
========================================================= */

.wizard-card {
    padding: 34px;

    background: rgba(255, 255, 255, 0.94);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.20);
}


.form-step {
    display: none;
}


.form-step.active {
    display: block;

    animation: formStepFade 0.25s ease;
}


@keyframes formStepFade {

    from {
        opacity: 0;

        transform: translateY(6px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


.step-label {
    margin-bottom: 8px;

    color: #5c3b78;

    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.form-step h2 {
    margin: 0 0 10px;
}


.step-description {
    margin: 0 0 28px;

    line-height: 1.6;
}


/* =========================================================
   FORM FIELDS
========================================================= */

.form-group {
    margin-bottom: 24px;
}


.form-group label {
    display: block;

    margin-bottom: 8px;

    font-weight: 700;

    line-height: 1.4;
}


.form-control {
    box-sizing: border-box;

    width: 100%;

    padding: 12px;

    color: #1d2a22;

    font: inherit;

    background: #ffffff;

    border: 1px solid #aeb8b2;
    border-radius: 6px;
}


.form-control:focus {
    border-color: #5c3b78;

    outline: 3px solid rgba(92, 59, 120, 0.15);
}


textarea.form-control {
    min-height: 110px;

    resize: vertical;
}


.field-help,
.password-help {
    margin-top: 7px;

    color: #58645d;

    font-size: 0.88rem;

    line-height: 1.5;
}


.password-help ul {
    margin: 8px 0 0;

    padding-left: 20px;
}


.field-error {
    margin: 7px 0 0;

    color: #a12622;

    font-size: 0.9rem;
    font-weight: 600;
}


/* =========================================================
   ERROR SUMMARY
========================================================= */

.error-summary {
    margin-bottom: 28px;

    padding: 18px;

    color: #781c18;

    background: #fbe9e8;

    border: 1px solid #e2b7b5;
    border-radius: 7px;
}


.error-summary h2 {
    margin: 0 0 8px;

    font-size: 1.1rem;
}


.error-summary p {
    margin: 0 0 10px;
}


.error-summary ul {
    margin: 0;

    padding-left: 22px;
}


/* =========================================================
   BUTTONS
========================================================= */

.button-row {
    display: flex;

    justify-content: space-between;

    gap: 12px;

    margin-top: 30px;
}


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


.primary-button,
.secondary-button {
    padding: 12px 22px;

    font: inherit;
    font-weight: 700;

    border-radius: 6px;

    cursor: pointer;
}


.primary-button {
    color: #ffffff;

    background: #245c47;

    border: 1px solid #245c47;
}


.secondary-button {
    color: #245c47;

    background: #ffffff;

    border: 1px solid #245c47;
}


.primary-button:hover {
    background: #194634;
}


.secondary-button:hover {
    background: #eef3ef;
}


.return-home {
    margin-top: 22px;

    text-align: center;
}


/* =========================================================
   INITIAL USER CHOICE PAGE
========================================================= */

.landing-container {
    width: 100%;

    max-width: 980px;

    margin: 55px auto;
}


.landing-heading {
    max-width: 900px;

    margin: 0 auto 42px;

    color: #ffffff;

    text-align: center;
}


.landing-heading .eyebrow {
    margin-bottom: 10px;

    font-size: 0.85rem;
    font-weight: 800;

    letter-spacing: 0.16em;

    opacity: 0.9;
}


.landing-heading h1 {
    max-width: 850px;

    margin: 0 auto 18px;

    font-size: clamp(2.5rem, 5vw, 4rem);

    line-height: 1.08;

    letter-spacing: -0.02em;

    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.18);
}


.landing-heading p {
    max-width: 650px;

    margin: 0 auto;

    color: rgba(255, 255, 255, 0.9);

    font-size: 1.05rem;

    line-height: 1.6;
}


.user-choice-container {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}


.user-choice-card {
    display: flex;

    flex-direction: column;

    min-height: 270px;

    padding: 34px 36px;

    color: #1d2a22;

    text-decoration: none;

    background:
        linear-gradient(
            180deg,
            #fffef9 0%,
            #f5f4ec 100%
        );

    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;

    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.16);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.user-choice-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 38px rgba(0, 0, 0, 0.22);
}


.user-choice-card h2 {
    margin-bottom: 12px;

    color: #17352b;

    font-size: 1.8rem;

    line-height: 1.2;
}


.user-choice-card p {
    margin-bottom: 28px;

    color: #4f5f57;

    font-size: 1rem;

    line-height: 1.6;
}


.choice-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: fit-content;

    min-width: 145px;

    margin: auto auto 0;

    padding: 12px 24px;

    color: #ffffff;

    font-weight: 700;

    text-align: center;

    background-color: #245c47;

    border: 2px solid #245c47;
    border-radius: 10px;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}


.user-choice-card:hover .choice-button {
    background-color: #194634;

    transform: translateY(-1px);
}


/* =========================================================
   RETURNING USER LOGIN PAGE
========================================================= */

.login-container {
    width: 100%;

    max-width: 600px;

    margin: 70px auto;
}


.login-card {
    padding: 36px;

    background: rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 18px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.20);
}


.login-card h1 {
    margin-bottom: 12px;
}


.login-card > p {
    margin-bottom: 24px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 700px) {

    .landing-container {
        margin-top: 30px;
    }


    .landing-heading {
        margin-bottom: 28px;
    }


    .landing-heading h1 {
        font-size: 2.4rem;
    }


    .user-choice-container {
        grid-template-columns: 1fr;
    }


    .user-choice-card {
        min-height: auto;

        padding: 28px;
    }

}


/* =========================================================
   SMALLER SCREENS
========================================================= */

@media (max-width: 650px) {

    .account-page {
        padding: 20px 12px;
    }


    .wizard-card {
        padding: 24px 18px;
    }


    .progress-step small {
        display: none;
    }


    .button-row {
        flex-direction: column-reverse;
    }


    .primary-button,
    .secondary-button {
        width: 100%;
    }

}