/* 
    "AS PALMER" custom font 
*/
@font-face {
    font-family: "MyCustomFont";
    src: url("fonts/MyCustomFont.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

:root {
    --color-primary: #f26822;
    --color-black: #000e14;
    --color-black-70: rgba(0, 14, 20, 0.7);
    --color-black-50: rgba(0, 14, 20, 0.5);
    --color-black-10: rgba(0, 14, 20, 0.08);
    --color-white: #ffffff;
    --color-dark-green: #0c7f77;
    --color-light-green: #68bf90;
    --color-light-green-50: rgba(104, 191, 144, 0.5);
    --color-blue: #03a3c3;
    --color-blue-50: rgba(3, 163, 195, 0.4);
    --color-yellow: #f9c553;
    --color-yellow-50: rgba(249, 197, 83, 0.5);
    --color-yellow-10: rgba(249, 197, 83, 0.12);
    --color-off-white: #f5f1ed;

    --color-shadow: 33, 33, 38;
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: "MyCustomFont";
    background-color: var(--color-off-white);
    color: var(--color-black);
}

a {
    text-decoration: none;
    color: var(--color-black);
}

/* 
    Utility Classses 
*/

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "MyCustomFont", sans-serif;
    color: var(--color-black);
    margin-top: 0;
    line-height: 1;
}

h1 {
    font-size: 6rem;
}

h2 {
    font-size: 3.4rem;
}

h4 {
    font-size: 1.8rem;
}

.section-header h2 {
  margin: 0;
}

.employees-container {
  display: flex;
  flex-wrap: wrap;
}
.person {
  margin: 0 10px 20px 0;
}

.section-header {
  padding-bottom: 1px;
}


p {
    font-family: "Overpass", sans-serif;
    font-size: 1.6rem;
    font-weight: normal;
    line-height: 1.6;
    color: var(--color-black);
}

.gradient-text {
    font-size: 1.6rem;
    background: -webkit-linear-gradient(-15deg, var(--color-primary), var(--color-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    max-width: 136.8rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    font-family: "MyCustomFont";
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    border-radius: 6px;
    padding: 2rem 2.4rem 1.6rem 2.4rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    transition: all 0.2s ease;
    box-shadow: 1px 2px 0.6rem rgba(0, 0, 0, 0.2);
}

.btn:hover {
    /* transform: translateY(-2px); */
}

.btn--secondary {
    background-color: var(--color-white);
    color: var(--color-black);
}

.btn--secondary:hover {
    color: var(--color-blue);
}

.btn--tertiary {
    background-color: transparent;
    color: var(--color-primary);
    box-shadow: none;
}

.btn--tertiary:hover {
    background-color: rgba(242, 104, 34, 0.1);
    transform: initial;
}

.btn--sm {
    font-size: 1.4rem;
    padding: 1rem 1.6rem 0.6rem 1.6rem;
}

.card {
    background-color: var(--color-white);
    padding: 1.6rem 2rem;
    border-radius: 1.2rem;
    box-shadow: 0.6rem 1rem 3.2rem 0 rgba(var(--color-shadow), 0.12), 1px 1px 1px 0 rgba(var(--color-shadow), 0.05), 0 0 0 1px rgba(var(--color-shadow), 0.05),
        0.3rem 0.4rem 0.6rem rgba(var(--color-shadow), 0.08), 1.4rem 2.4rem 6.8rem 0 rgba(var(--color-shadow), 0.08);
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    text-align: center;
    padding-top: 8rem;
}

.line-separator {
    width: 100vw;
    height: auto;
}

/*
    Navigation Styling
*/

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-off-white);
    padding-block: 1.2rem;
    z-index: 99;
    box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.12);
}

.nav--dashboard {
    position: static;
    background-color: var(--color-white);
    padding-inline: 2rem;
}

.nav--dashboard .logo {
    justify-self: flex-start;
}

.nav--dashboard .nav__links {
    justify-self: center;
}

.nav--dashboard .profile {
    justify-self: flex-end;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.4rem;
    font-family: "Overpass", sans-serif;
    font-weight: 600;
}

.nav--dashboard .profile img {
    width: 3.2rem;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
}

.nav .container,
.nav--dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: max-content;
    align-items: center;
}

.nav__links {
    list-style-type: none;
    display: flex;
    gap: 0.8rem;
    font-family: "Overpass";
    font-size: 1.6rem;
}

.nav__link {
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
}

.nav__link--active {
    background-color: var(--color-blue);
    font-weight: bold;
}

.nav__link a {
    color: var(--color-black);
}

.nav__link a:hover {
    color: var(--color-blue);
}

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

.logo {
    height: 2.4rem;
    justify-self: center;
    overflow: hidden;
}

.logo img {
    height: 100%;
}

.actions {
    justify-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

/* 
    Hero Section
*/
#hero {
    position: relative;
    height: max(85vh, 650px);
    width: 100vw;
}

#hero .hero-container {
    position: relative;
}

.hero__image {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: bottom left;
    z-index: -1;
}

#hero .container {
    height: 100%;
}

#hero .hero__content {
    width: 40%;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.6rem;
    margin-bottom: 4rem;
}

#hero .hero__content h1,
p {
    color: var(--color-white);
}

#hero .hero__content p {
    font-size: 1.8rem;
    width: 70%;
}

#hero .usp {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: calc(100% - 2rem);
    gap: 1.6rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    justify-content: space-between;
    padding: 0 2rem;
}

#hero .usp__item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1.2rem;
}

#hero .usp__item p {
    color: var(--color-black);
}

/* 
    Calendar Styling
*/

#calendar {
    position: relative;
    padding-block: 8rem;
}

#calendar .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#calendar .calendar__desc {
    width: 60%;
    color: var(--color-black);
    text-align: center;
    margin-top: 2.4rem;
}

#calendar .calendar__mockup {
    width: 80%;
    height: auto;
}

.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(-135deg, var(--color-white), var(--color-blue), var(--color-yellow), var(--color-dark-green), var(--color-primary), var(--color-white));
    opacity: 0.12;
    z-index: -1;
}

.gradient-bg::before,
.gradient-bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 20rem;
    background: linear-gradient(to bottom, rgba(245, 241, 237, 1), rgba(245, 241, 237, 0));
}

.gradient-bg::before {
    top: 0;
}

.gradient-bg::after {
    bottom: 0;
    transform: rotate(180deg);
}

.features {
    width: 60%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, max-content);
    gap: 1.6rem;
}

.features .card__feature {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background-color: var(--color-light-green);
    color: var(--color-white);
}

.features .card__feature img {
    width: 3.2rem;
    aspect-ratio: 1 / 1;
    margin-bottom: 0.8rem;
}

.features .card__feature h4 {
    color: var(--color-white);
}

.features .card__feature p {
    font-size: 1.4rem;
}

/* 
    About Us Section
*/
#about {
    margin-block: 2.4rem;
}

#about .about__image {
    position: relative;
    width: 100%;
}

#about .about__image img {
    width: 66%;
    border-radius: 2.4rem;
    object-fit: cover;
}

#about .about__content {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.8rem;
    padding: 2.4rem;
}

#about .about__content p {
    color: var(--color-black);
}

#about .about__content .mission {
    background-color: rgba(252, 229, 183, 0.4);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    border-radius: 1.2rem;
}

#about .about__content .mission img {
    width: 4rem;
    aspect-ratio: 1 / 1;
}

#about .about__content .mission .mission__text {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* 
    Our Team Styling
*/

#team .employees-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    justify-content: center;
    align-items: center;
    padding-top: 4.8rem;
}

#team .person {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#team .person .person__portrait {
    position: absolute;
    left: 4rem;
    top: 50%;
    transform: translate(0, -50%);
    width: 30%;
    height: auto;
}

#team .person .person__portrait .social-links {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0.8rem 1.2rem;
    border-radius: 9999px;
    background-color: var(--color-white);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.2rem;
}

#team .person .person__portrait .social-links img {
    width: 2rem;
    aspect-ratio: 1 / 1;
    mix-blend-mode: luminosity;
}

#team .person .person__portrait .social-links img:hover {
    mix-blend-mode: normal;
}

#team .person .person__portrait img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#team .person--opposite .person__portrait .social-links {
    left: initial;
    right: 0;
}

.social-links a img {
  width: 24px;
  height: 24px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #ffffff; 
}

*, *::before, *::after {
  box-sizing: border-box;
}


#team .person .person__content {
    width: 70%;
    min-height: 34rem;
    padding: 3.2rem 2.8rem 3.2rem 5.6rem;
    background-color: rgba(242, 104, 34, 0.08);
    border-radius: 1.2rem;
}

#team .person .person__content .person__header {
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#team .person .person__content .person__header .name__container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#team .person .person__content .person__header .name__container p {
    color: var(--color-black);
    opacity: 0.5;
}

#team .person .person__content .description {
    color: var(--color-black);
}

#team .person--opposite {
    justify-content: flex-start;
}

#team .person--opposite .person__portrait {
    right: 4rem;
    left: initial;
}

#team .person--opposite .person__content {
    padding: 3.2rem 5.6rem 3.2rem 2.8rem;
    align-self: flex-start;
}

/* 
    End CTA section
*/

#cta {
    padding-block: 12rem;
    text-align: center;
}

#cta .container {
    display: flex;
    flex-direction: column;
    gap: 4.8rem;
    align-items: center;
    justify-content: center;
}

#cta .register-card {
    position: relative;
    width: 60rem;
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
    justify-content: space-between;
    align-items: stretch;
}

#cta .register-card .header {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
    isolation: isolate;
}

#cta .register-card .gradient {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    right: 0.4rem;
    border-radius: 0.6rem;
    height: 50%;
    background: linear-gradient(to bottom, rgba(197, 227, 207, 0.4), rgba(255, 255, 255, 0));
}

#cta .register-card p {
    color: var(--color-black);
    opacity: 0.5;
}

#cta .register-card .register__form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    isolation: isolate;
}

#cta .register-card .register__form .name {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#cta .register-card .register__form .submission-text {
    font-size: 1.4rem;
}

.input__field {
    flex: 1;
    border: 1px solid #d0d7de;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.6rem;
    border-radius: 0.6rem;
    padding-inline: 0.8rem 0.2rem;
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.08);
    background-color: var(--color-white);
}

.input__field input,
.input__field select {
    border: none;
    outline: none;
    padding-block: 0.8rem;
    font-size: 1.6rem;
    width: 100%;
    height: 100%;
    border-radius: 0.8rem;
}

.input__field:has(> input:focus),
.input__field:has(> select:focus) {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(3, 163, 195, 0.16);
}

.input__field:has(> input:hover),
.input__field:has(> select:hover) {
    border-color: var(--color-blue);
}

/* 
    Footer Styling
*/

.footer {
    position: relative;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--color-off-white) 10%, var(--color-off-white) 90%, rgba(255, 255, 255, 0));
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer .gradient-bg {
    top: initial;
    bottom: -1.2rem;
    aspect-ratio: 21 / 9;
}

.footer .gradient-bg::after {
    display: none;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 3.2rem 2rem;
}

.footer .footer__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
}

.footer .footer__left .logo {
    margin-bottom: 0.8rem;
    height: 2.4rem;
    width: auto;
}

.footer .footer__left p {
    color: var(--color-black);
    opacity: 0.5;
    font-size: 1.4rem;
}

.footer .footer__left .social-icons {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.footer .footer__left .social-icons img {
    mix-blend-mode: luminosity;
}

.footer .footer__left .social-icons img:hover {
    mix-blend-mode: normal;
}

.footer .footer__right {
    display: flex;
    gap: 4rem;
}

.footer .footer__right .links__wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
}

.footer .footer__right .links__wrapper .label {
    font-size: 1.4rem;
    opacity: 0.5;
}

.footer .footer__right .links__wrapper .links {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
}

.footer .footer__right .links__wrapper .links a {
    font-size: 1.6rem;
    font-family: "Overpass", sans-serif;
}

.footer .footer__right .links__wrapper .links a:hover,
.footer .footer__right .links__wrapper .links li:hover {
    color: var(--color-blue);
}

.footer .links__wrapper .disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@media only screen and (max-width: 1400px) {
    html {
        font-size: 56.25%;
    }

    .container {
        max-width: 117rem;
    }

    #hero .hero__content {
        width: 65%;
    }

    #calendar .calendar__mockup {
        width: 110%;
        overflow: hidden;
    }

    .features {
        width: 70%;
    }
}

@media only screen and (max-width: 768px) {
    html {
        font-size: 50%;
    }

    h1 {
        font-size: 4.8rem;
    }

    .nav--dashboard {
        display: grid;
        grid-template-columns: 1fr max-content;
        grid-template-rows: repeat(2, max-content);
        grid-template-rows: max-content;
        align-items: center;
        gap: 1.2rem;
    }

    .footer .gradient-bg {
        height: 80rem;
        width: 100vw;
    }

    .nav .container {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
    }

    .nav--dashboard .logo {
        grid-column: 1 / -1;
        margin-left: 1.2rem;
    }

    .nav--dashboard .nav__links {
        display: flex;
        justify-self: left;
    }

    /* .nav--dashboard .profile {
        justify-self: center;

    } */

    .nav--dashboard .profile span {
        display: none;
    }

    .nav__links {
        display: none;
    }

    .logo {
        height: 2rem;
        justify-self: flex-start;
    }

    #hero {
        height: max(100vh, 650px);
        width: auto;
    }

    #hero .hero-container {
        display: flex;
        justify-content: center;
    }

    #hero .hero__content {
        width: 100%;
        align-items: center;
        text-align: center;
        justify-content: flex-start;
        padding-top: 12rem;
    }

    #hero .hero__content p {
        width: 90%;
    }

    .hero__image {
        object-position: bottom right;
    }

    .overlay {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 100%;
        width: 100%;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
    }

    #hero .usp {
        grid-template-columns: repeat(1, 1fr);
        transform: translateY(50%);
        width: initial;
    }

    #hero .usp__item {
        align-items: center;
    }

    #calendar {
        position: relative;
        padding-block: 24rem 8rem;
    }

    #calendar .calendar__desc {
        width: 100%;
    }

    .features {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, max-content);
        width: 100%;
    }

    #about .about__image {
        margin-bottom: 16rem;
    }

    #about .about__image img {
        width: 100%;
    }

    #about .about__content {
        bottom: 0;
        left: 50%;
        right: initial;
        top: initial;
        transform: translate(-50%, 80%);
        width: 90%;
    }

    #team .section-header {
        padding-top: 32rem;
    }

    #cta .register-card {
        width: 100%;
    }

    #team .person {
        flex-direction: column;
    }

    #team .person .person__portrait {
        position: static;
        transform: initial;
        width: 90%;
        isolation: isolate;
    }

    #team .person .person__content {
        width: 100%;
        padding: 5.6rem 2.4rem 2.4rem 2.4rem;
        margin-top: -4rem;
    }

    #cta .register-card .register__form .name {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 4rem;
    }

    .footer .footer__left {
        align-items: center;
    }

    .footer__right {
        width: 80%;
        justify-content: space-between;
    }

    #team .person .person__portrait {
        position: static;
        width: 90%;
        margin-bottom: 1.2rem; /* optional: adds breathing room */
    }

    #team .person .person__portrait .social-links {
        position: static;
        justify-content: center;
        align-items: center;
        gap: 1.2rem;
        margin-top: -1.6rem; /* ⬅ pulls it up closer to the portrait */
        margin-bottom: 2.4rem;
        padding: 0.8rem 1.6rem;
    }

    #team .person .person__portrait .social-links img {
        width: 2.4rem;
        height: 2.4rem;
    }
}

@media only screen and (max-width: 500px) {
    .footer__right {
        flex-direction: column;
        align-items: center;
    }

    .footer .footer__right .links__wrapper,
    .footer .footer__right .links__wrapper .links {
        align-items: center;
    }
}

.dashboard {
    display: grid;
    /* grid-template-columns: 21.6rem 1fr;
    grid-template-rows: max-content 1fr; */
    height: 100vh;
    grid-template-columns: 1fr;
    grid-template-rows: max-content max-content 1fr;
}

.nav--dashboard {
    grid-column: 1 / -1;
}

.filter__friends {
    /* grid-row: 2 / -1; */
    /* grid-column: 1 / 2; */
    display: flex;
    /* flex-direction: column; */
    justify-content: center;
    padding: 0.6rem 0.8rem;
    gap: 0.8rem;
    /* width: 21.6rem; */

    grid-row: 2 / 3;
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    padding-top: 1.6rem;
}

.filter__friends input {
    width: 2.4rem;
}

.filter__friends input[type="checkbox"] {
    accent-color: var(--color-yellow);
    fill: white;
    border-color: white;
}

.filter__friends label {
    display: flex;
    gap: 0.8rem;
    font-family: "Overpass", sans-serif;
    font-size: 1.6rem;
    color: var(--color-black-70);
    cursor: pointer;
}

.filter__friends label {
    padding: 0.8rem 1.4rem 0.8rem 0.8rem;
    border-radius: 0.6rem;
}

.filter__friends label:hover {
    background-color: var(--color-black-10);
}

.filter__friends label:has(input:checked) {
    font-weight: 600;
    color: var(--color-black);
}

/* 
    Invitation Modal
*/

.modal-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    inset: 0;
    background-color: var(--color-black-70);
    z-index: 99;
    backdrop-filter: blur(4px);
}

.modal-overlay.hide {
    display: none;
}

.modal {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 80%;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
    justify-content: space-between;
    align-items: stretch;
}

.modal--md {
    width: 40%;
}

.modal--sm {
    width: 40%;
    height: auto;
}

.modal .header {
    isolation: isolate;
}

.modal .gradient {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    right: 0.4rem;
    border-radius: 0.6rem;
    height: 50%;
    background: linear-gradient(to bottom, rgba(197, 227, 207, 0.4), rgba(255, 255, 255, 0));
}

.modal .gradient.blue {
    background: linear-gradient(to bottom, rgba(3, 163, 195, 0.2), rgba(255, 255, 255, 0));
}

.modal .close-btn {
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    width: 3.2rem;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    z-index: 999;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--color-black-10);
}

.modal .close-btn:hover {
    background-color: var(--color-black-10);
    border-color: transparent;
}

.close-btn img {
    width: 2rem;
    aspect-ratio: 1 / 1;
}

.modal .header {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
}

.modal p {
    color: var(--color-black);
    opacity: 0.5;
}

.modal__main {
    flex: 1;
    isolation: isolate;
    height: 100%;
    min-height: 0;
}

.invitation-modal .modal__main .right .email-preview::-webkit-scrollbar {
    display: none;
}

.modal__main > * {
    /* flex: 1; */
    height: 100%;
}

.invitation-modal .modal__main {
    display: flex;
    justify-content: stretch;
    align-items: flex-start;
    gap: 2.4rem;
}

.invitation-modal .modal__main .left {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 40%;
}

.invitation-modal .modal__main .field__label,
.field__label {
    text-transform: uppercase;
    font-family: "Overpass", sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0.4rem;
    display: inline-block;
    letter-spacing: 0.5px;
    color: var(--color-black-50);
}

.invitation-modal .modal__main .line-separator {
    width: 100%;
    height: 1px;
    margin-block: 2rem 1.2rem;
    background-color: var(--color-black-10);
}

.invitation-modal .modal__main .right {
    display: flex;
    flex-direction: column;
    width: 60%;
}

/* Email Preview */

.invitation-modal .modal__main .right .email-preview {
    background-color: var(--color-white);
    flex: 1;
    border-radius: 0.8rem;
    box-shadow: 0.6rem 1rem 3.2rem 0 rgba(var(--color-shadow), 0.12), 1px 1px 1px 0 rgba(var(--color-shadow), 0.05), 0 0 0 1px rgba(var(--color-shadow), 0.05),
        0.3rem 0.4rem 0.6rem rgba(var(--color-shadow), 0.08);
    overflow: scroll;
    min-height: 0;
}

.email-preview .subject {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    display: inline-block;
    padding: 1.4rem 1.6rem 1.4rem 1.6rem;
    border-bottom: 1px solid var(--color-black-10);
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    font-size: 1.4rem;
    line-height: 1.5;
}

.email-preview .description {
    padding: 0.8rem 1.4rem;
    pointer-events: none;
}

.email-preview .description p {
    color: var(--color-black-70);
    opacity: 1;
    margin-bottom: 0.6rem;
}

.email-preview .description .bold {
    color: var(--color-black);
    font-weight: bold;
}

.email-preview .description img {
    width: 100%;
    height: auto;
}

.email-preview .description .email-footer {
    margin-top: 3.2rem;
}

/* 
    Invitation History
*/

.invite-history-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: scroll;
}

.invites-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1.2rem;
    flex: 1;
}

.invite-history-container::-webkit-scrollbar {
    display: none;
}

.invites-list .invite-item {
    padding: 0.4rem 0.6rem 0.4rem 0.8rem;
    font-family: "Overpass", sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.6rem;
    border: 1px solid transparent;
}

.invites-list .invite-item:hover {
    background-color: #f9f9f9;
    border-color: #ebeced;
}

.invites-list .invite-item .invite-item__main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.invites-list .invite-item .invite-item__main .name {
    font-size: 1.4rem;
    font-weight: bold;
}

.invites-list .invite-item .invite-item__main .email {
    font-size: 1.2rem;
    color: var(--color-black-50);
}

.invites-list .invite-item .resend-btn {
    display: none;
    cursor: pointer;
    background-color: var(--color-primary);
    width: 2.8rem;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
}

.invites-list .invite-item:hover .resend-btn {
    display: flex;
}

.invites-list .invite-item .resend-btn:hover {
    box-shadow: 0.6rem 1rem 3.2rem 0 rgba(var(--color-shadow), 0.12), 1px 1px 1px 0 rgba(var(--color-shadow), 0.05), 0 0 0 1px rgba(var(--color-shadow), 0.05),
        0.3rem 0.4rem 0.6rem rgba(var(--color-shadow), 0.08);
}

.state {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    padding: 0.6rem 1.2rem 0.3rem 1.2rem;
    background-color: var(--color-black-10);
    border-radius: 9999px;
    color: var(--color-black-50);
}

.state.state--pending {
    color: var(--color-yellow);
    background-color: var(--color-yellow-10);
}

@media only screen and (max-width: 1400px) {
    .modal {
        width: 80%;
    }

    .modal {
        width: 60%;
    }

    .invitation-modal .modal__main .left,
    .invitation-modal .modal__main .right {
        width: 50%;
    }
}

@media only screen and (max-width: 1024px) {
    .invitation-modal .modal__main {
        flex-direction: column;
        overflow-y: scroll;
        align-items: center;
    }

    .invitation-modal .modal__main::-webkit-scrollbar {
        display: none;
    }

    .invitation-modal .modal__main .left,
    .invitation-modal .modal__main .right {
        width: 90%;
        height: initial;
    }

    .invitation-modal .modal__main .right {
        padding-bottom: 3.2rem;
    }

    .invitation-modal .modal__main .right .email-preview {
        min-height: initial;
        overflow: hidden;
    }
}

/*  
*/

#summer-calendar {
    grid-column: 1 / -1;
    grid-row: 3 / -1;
}

/* 
*/

@media only screen and (max-width: 768px) {
    .modal--md {
        position: fixed;
        width: 100%;
        height: 90%;
        top: initial;
        left: 0;
        bottom: 0;
        right: 0;
        transform: initial;
        border-end-start-radius: 0;
        border-end-end-radius: 0;
    }

    .dashboard {
        grid-template-columns: 1fr;
        grid-template-rows: max-content max-content 1fr;
        height: 100vh;
    }

    .nav--dashboard {
        grid-column: 1 / -1;
    }

    .filter__friends {
        grid-row: 2 / 3;
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        padding-top: 1.6rem;
    }

    #summer-calendar {
        grid-column: 1 / -1;
        grid-row: 3 / -1;
    }
}

@media only screen and (max-width: 500px) {
    .modal,
    .modal--sm {
        position: fixed;
        width: 100%;
        height: 90%;
        top: initial;
        left: 0;
        bottom: 0;
        right: 0;
        transform: initial;
        border-end-start-radius: 0;
        border-end-end-radius: 0;
    }

    .modal--sm {
        height: 50%;
    }

    .invitation-modal .modal__main .left,
    .invitation-modal .modal__main .right {
        width: 95%;
        height: initial;
    }

    .invitation-modal .modal__main .right {
        padding: initial;
    }

    .invitation-modal .modal__main .right .email-preview {
        box-shadow: 1px 1px 1px 0 rgba(var(--color-shadow), 0.05), 0 0 0 1px rgba(var(--color-shadow), 0.05), 0.3rem 0.4rem 0.6rem rgba(var(--color-shadow), 0.08);
    }
}

/* 
    Edit Plan Modal
*/

/* #edit-plan-modal-overlay .modal {
    width: 40%;
    height: 90%;
} */

.plan-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
}

.plan-form .calendar-ui {
    align-self: center;
    display: flex;
    flex-direction: column;
    /* gap: 0.4rem; */
    align-items: center;
    font-size: 1.4rem;
    font-family: "Overpass", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-black-50);
    font-weight: 700;
}

.plan-form .plan-form__main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2.4rem;
    flex: 1;
    min-height: 0;
    overflow: scroll;
}

.plan-form .plan-form__main::-webkit-scrollbar {
    display: none;
}

.plan-form .flex {
    display: flex;
    align-items: center;
    justify-content: stretch;
    gap: 1.6rem;
}

.plan-form .flex > * {
    flex: 1;
}

.input__field .multi-select::-webkit-scrollbar {
    display: none;
}

.input__field .multi-select option {
    padding: 0.4rem 0.8rem;
    border-radius: 0.6rem;
}

.input__field .multi-select option:not(:last-child) {
    margin-bottom: 0.4rem;
}

.input__field .multi-select option:checked {
    background-color: var(--color-blue-50);
}

/* 
    Campers Page
*/

.campers-page-container {
    grid-column: 1 / -1;
    width: 100%;
    padding-block: 2rem;
    /* height: 100%; */
    align-self: stretch;
    /* overflow: scroll; */
}

.camper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.6rem;
}

.camper-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-content: stretch;
}

.camper-items .table-header {
    background-color: var(--color-off-white);
    border: none;
    box-shadow: none;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
}

.camper-items .table-header:hover {
    box-shadow: none;
    background-color: var(--color-off-white);
}

.camper-items .table-header .column-title {
    text-transform: uppercase;
    font-family: "Overpass", sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--color-black-50);
    font-weight: 700;
}

.camper-item {
    display: grid;
    grid-template-columns: repeat(2, minmax(min-content, auto)) max-content;
    grid-template-rows: max-content;
    padding: 0.8rem 1.2rem;
    width: 100%;
    gap: 0.8rem;
    align-items: center;
    box-shadow: 1px 1px 1px 0 rgba(var(--color-shadow), 0.05), 0 0 0 1px rgba(var(--color-shadow), 0.05), 0.3rem 0.4rem 0.6rem rgba(var(--color-shadow), 0.08);
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.8);
}

.camper-item:hover {
    box-shadow: 0.6rem 1rem 3.2rem 0 rgba(var(--color-shadow), 0.12), 1px 1px 1px 0 rgba(var(--color-shadow), 0.05), 0 0 0 1px rgba(var(--color-shadow), 0.05),
        0.3rem 0.4rem 0.6rem rgba(var(--color-shadow), 0.08);
    isolation: isolate;
    background-color: var(--color-white);
}

.camper-item .input__field {
    border-color: transparent;
    box-shadow: none;
    background-color: transparent;
}

.camper-item .input__field input {
    background-color: transparent;
}

/* .add-kid__modal {
    height: auto;
    width: 40%;
} */

.add-kid__modal .add-kid__form {
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
}

.add-kid__modal .add-kid__form .add-kid__form-main {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.add-kid__modal .add-kid__form .action-buttons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 1.6rem;
}

.add-kid__modal .add-kid__form .action-buttons > * {
    flex: 1;
}

@media only screen and (max-width: 500px) {
    .camper-items .table-header {
        display: none;
    }

    .camper-item {
        grid-template-columns: 1fr;
    }

    .add-kid__modal .add-kid__form-main {
        height: 100%;
        flex: 1;
    }
}

/* 
    FAQ Page
*/

.faq-section {
    padding: 60px 20px;
    background: #f5f2ed;
}

.faq-list {
    max-width: 800px;
    margin: auto;
    padding-block: 4.8rem;
}

.faq-item {
    /* border-bottom: 1px solid #ddd; */
    margin-bottom: 10px;
    padding: 0.8rem 1.2rem;
    border-radius: 0.8rem;
    background-color: rgba(255, 255, 255, 0.5);
}

.faq-item:hover {
    background-color: var(--color-white);
}

.faq-item.card {
    isolation: isolate;
    background-color: var(--color-white);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.6rem;
    font-weight: 600;
    padding: 15px;
    cursor: pointer;
    position: relative;
    font-family: "Overpass", sans-serif;
    color: var(--color-black-70);
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.faq-question.active::after {
    content: "–";
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 15px;
    color: black !important;
}

.faq-answer.open {
    padding: 15px;
    max-height: 300px; /* Adjust if needed */
    color: black !important;
}

.modal-overlay-login {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

.modal-overlay-login.hide {
	display: none;
}

.login-modal {
	position: relative;
	width: 90%;
	max-width: 400px;
	background: white;
	padding: 2rem;
	border-radius: 10px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.close-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	cursor: pointer;
}

.event-card.confirmed {
  background-color: #d1e7dd; /* Light green */
  border-left: 4px solid #28a745; /* Green border */
}

.event-card.tentative {
  background-color: #fff3cd; /* Light yellow */
  border-left: 4px solid #ffc107; /* Yellow border */
}