@import "globals.css";

.alert-header {
    width: 100%;
    background-color: #E0E28C;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-header p {
    color: var(--tertiary-color);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 11px;
    text-align: center;
}

.alert-header p span {
    background-color: white;
    padding: 8px 12px;
    border-radius: 40px;
    text-transform: capitalize;
}


.nav {
    width: 100%;
    min-height: 70px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    background-color: var(--tertiary-color);
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav .menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav .menu li a {
    color: #E0E28C;
    font-size: 14px;
    font-weight: 500;
}

.nav .menu li:last-child a {
    padding: 15px 10px;
    background-color: white;
    color: var(--tertiary-color);
    border-radius: 10px;
}

.header {
    padding: 20px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.header .header-image img {
    max-width: 400px;
    width: 100%;
}

.header .header-contents {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.header .header-contents h1 {
    max-width: 560px;
    font-size: 26px;
    font-family: "Lora", serif;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: -1px;
    text-align: center;
}

@media screen and (min-width: 1000px) {
    .header .header-contents h1 {
        font-size: 52px;
        font-weight: 600;
        line-height: 60px;
        text-align: left;
        letter-spacing: -3px;
    }
}


.header .header-contents h1 span {
    color: var(--secondary-color);
}


.header .header-contents .detail-list {
    width: 100%;
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.header .header-contents .detail-list .item {
    background: white;
    padding: 15px;
    min-height: 65px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    gap: 15px;
}

.header .header-contents .detail-list .item .item-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header .header-contents .detail-list .item .item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header .header-contents .detail-list .item p {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header .header-contents .detail-list .item p span {
    font-size: 18px;
    color: var(--secondary-color);
    font-weight: 600;
}

.main-btn {
    width: 100%;
    max-width: max-content;
    padding: 25px;
    border-radius: 15px;
    background-color: var(--tertiary-color);
    font-size: 14px;
    text-align: center;
    color: white;
    text-transform: uppercase;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

@media screen and (min-width: 1000px) {
    .main-btn {
        font-size: 21px;
    }
}

.main-btn.full {
    max-width: 100%;
}

@media screen and (max-width: 900px) {
    .header-image {
        display: none;
    }

    .header .header-contents {
        max-width: 100%;
        align-items: center;
    }

    .header .header-contents .detail-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.header-warn {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.header-warn p {
    font-size: 12px;
    font-weight: 500;
}

.header-warn .rating {
    display: flex;
    align-items: center;
}

.header-warn .rating .stars {
    display: flex;
}

.header-warn .rating .stars img {
    max-width: 30px;
    width: 100%;
}

.header-warn .rating span {
    font-size: 12px;
    font-weight: 500;
}


.section-title h2 {
    font-size: 36px;
    color: var(--tertiary-color);
    font-weight: 600;
    line-height: 36px;
    text-align: center;
}

.section-title h2 span {
    color: var(--secondary-color);
}

.steps {
    padding: 4rem 0;
    background-color: white;
}

.steps .steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.steps .steps-list .item {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    gap: 20px;
}

.steps .steps-list .item .item-contents {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.steps .steps-list .item h6 {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.steps .steps-list .item img {
    height: 120px;
    margin: 0 auto;
}

.steps .steps-list .item p {
    font-size: 11px;
    color: white;
    font-weight: 500;
    line-height: 18px;
}

.section-footer {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.section-footer h3 {
    font-size: 21px;
    color: var(--tertiary-color);
    font-weight: 600;
    line-height: 30px;
    text-align: center;
}

.testimonials {
    width: 100%;
    overflow: hidden;
    padding: 4rem 0;
    background-color: #fff;
}

.testimonials .row {
    display: flex;
    gap: 30px;
    width: max-content;
    will-change: transform;
}

.testimonials .row .item {
    width: 100%;
    max-width: 280px;
    border: 2px solid var(--tertiary-color);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
}

.testimonials .row .item .item-contents {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 2rem 2rem 0 2rem;
}

.testimonials .row .item .item-image img {
    width: 100%;
    height: 100%;
}

.testimonials .row .item .item-contents .rating-stars img {
    width: 100%;
    max-width: 18px;
}

.testimonials .row .item .item-contents h6 {
    font-size: 16px;
    font-weight: 600;
    color: var(--tertiary-color);
}

.testimonials .row .item .item-contents p {
    font-size: 12px;
    font-weight: 400;
    color: var(--tertiary-color);
}

.testimonials .row .item .item-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding: 2rem;
    border-top: 2px solid var(--tertiary-color);
}

.testimonials .row .item .item-footer .author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.testimonials .row .item .item-footer .author .avatar {
    width: 40px;
    height: 40px;
}

.testimonials .row .item .item-footer .author .avatar img {
    width: 100%;
    height: 100%;
}

.testimonials .row .item .item-footer .author .author-info span {
    font-weight: 600;
    font-size: 14px;
}

.testimonials .row .item .item-footer .author .author-info p {
    font-size: 14px;
}

.testimonials .row .item .item-footer .result {
    max-width: max-content;
    padding: 5px 18px;
    background-color: var(--secondary-color);
    border-radius: 50px;
    color: white;
    font-size: 12px;
    margin-left: auto;
}

.testimonials .row .item .item-footer .result span {
    font-weight: 600;
}

.testimonials .row .item .item-footer .date p {
    font-size: 11px;
}

.testimonials .row .item .item-footer .date p span {
    font-weight: 600;
}

.results {
    width: 100%;
    height: auto;
}

.results .container {
    display: flex;
    align-items: center;
    flex-direction: column;
}

@media screen and (min-width: 1000px) {
    .results .container {
        gap: 80px;
    }
}

@supports not (gap: 30px) {
    .results .container>* {
        margin-bottom: 30px;
    }
}

.results .item-list {
    width: 100%;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-auto-rows: minmax(150px, 195px);
    gap: 20px;
}

.results .item-list .item {
    width: 100%;
    height: auto;
    max-height: 195px;
    background-color: var(--tertiary-color);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}



.results .item-list .item.large {
    grid-row: span 2;
    height: 100%;
    padding: 0;
    max-height: 420px;
}

.results .item-list .item.image {
    background-image: url(../images/doctor-portrait-heart.png);
    background-color: var(--tertiary-color);
    background-size: cover;
    background-position-y: top;
    background-position-x: center;
}

.results .item-list .item .item-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: end;
}

.results .item-list .item .item-image img {
    width: 100%;
    max-width: 400px;
}


.results .item-list .item .item-icon {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
}

.results .item-list .item .item-icon img {
    max-height: 25px;
}

.results .item-list .item .item-contents {
    max-width: 190px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.results .item-list .item .item-contents h6 {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.results .item-list .item .item-contents p {
    font-size: 12px;
    font-weight: 400;
    color: white;
    z-index: 2;
}

.results .item-list .item .overlay-image {
    max-width: 60px;
    position: absolute;
    right: 2rem;
    bottom: -35px;
    pointer-events: none;
}

.results .item-list .item:nth-child(3) .overlay-image {
    max-width: 150px;
    right: 0;
    top: 0;
}

.results .item-list .item:nth-child(5) .overlay-image {
    max-width: 130px;
    right: 0;
    bottom: 0;
}

@media (max-width: 1024px) {
    .results .item-list {
        grid-template-columns: 1fr 1fr;
    }

    .results .item-list .item.large {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .results .item-list {
        grid-template-columns: 1fr;
    }

    .results .item-list .item.large {
        grid-column: span 1;
    }
}


.calculator {
    padding: 2rem 0;
}

@media screen and (min-width: 1000px) {
    .calculator {
        padding: 4rem 0;
    }

}

.calculator .container {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.calculator .calculator-contents {
    max-width: 600px;
}

.calculator .calculator-contents h2 {
    font-family: "Lora", serif;
    font-size: 46px;
    font-weight: 600;
    line-height: 60px;
}

.calculator .calculator-contents h2 span {
    color: var(--secondary-color);
    font-weight: 600;
}

.calculator .calculator-function {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calculator .calculator-function .calculator-box {
    width: 100%;
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calculator .calculator-function .calculator-box .box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calculator .calculator-function .calculator-box .box-header h6 {
    color: white;
    font-size: 16px;
}

.calculator .calculator-function .calculator-box .box-header span {
    width: 100%;
    max-width: 90px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--tertiary-color);
    font-size: 16px;
    background-color: var(--primary-color);
    font-weight: 600;
    border-radius: 10px;
}


.calculator .calculator-function .calculator-box .box-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calculator .calculator-function .calculator-box .box-footer p {
    color: white;
    font-size: 12px;
}

.calculator .calculator-function .calculator-box .box-footer span {
    width: 100%;
    max-width: 90px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 16px;
    background-color: var(--tertiary-color);
    font-weight: 600;
    border-radius: 10px;
}

.calculator .calculator-function .calculator-box .field input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #ddd;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
    --progress: 0%;
}

.calculator .calculator-function .calculator-box .field input[type="range"]:hover {
    opacity: 1;
}

.calculator .calculator-function .calculator-box .field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #4CAF50;
    cursor: pointer;
    border-radius: 50%;
    margin-top: -6px;
}

.calculator .calculator-function .calculator-box .field input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #4CAF50 0%, #4CAF50 var(--progress), #ccc var(--progress), #ccc 100%);
}

.calculator .calculator-function .calculator-box .field input[type="range"]::-moz-range-progress {
    background: #4CAF50;
    height: 8px;
}

.calculator .calculator-function .calculator-box .field input[type="range"]::-moz-range-track {
    width: 100%;
    height: 8px;
    background: #ccc;
}

@media screen and (max-width: 1000px) {
    .calculator .container {
        flex-direction: column;
    }

    .calculator .calculator-contents {
        text-align: center;
    }

    .calculator .calculator-contents h2 {
        font-size: 36px;
        line-height: 40px;
    }
}


.medication {
    width: 100%;
    padding-top: 4rem;
}

.medication .container {
    display: flex;
    justify-content: space-between;
}

.medication-contents {
    max-width: 780px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 2rem;
}

.medication .medication-contents h3 {
    font-size: 32px;
    text-transform: uppercase;
    color: var(--tertiary-color);
    font-weight: 700;
}


.medication .medication-contents h2 {
    color: var(--secondary-color);
    font-size: 56px;
    line-height: 42px;
    font-weight: 700;
}

@media screen and (min-width: 500px) {
    .medication .medication-contents h2 {
        line-height: 52px;
    }
}

@media screen and (min-width: 1000px) {
    .medication .medication-contents h2 {
        line-height: 56px;
    }
}

.medication .medication-contents p {
    color: var(--secondary-color);
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
}

.medication .medication-contents .warn-box {
    width: 100%;
    background-color: white;
    max-width: 540px;
    display: flex;
    gap: 30px;
    padding-left: 3rem;
    padding-right: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.medication .medication-contents .warn-box img {
    max-width: 50px;
    width: 100%;
}

.medication .medication-contents .warn-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 20px;
    background-color: #E0E28C;
}

.medication .medication-contents .warn-box p {
    font-size: 14px;
}

.medication-image {
    display: flex;
    align-items: end;
}

.medication-image img {
    width: 100%;
    max-width: 800px;
}

@media screen and (max-width: 1000px) {
    .medication-image {
        display: none;
    }

    .medication-contents {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

@media screen and (max-width: 600px) {
    .medication .medication-contents .warn-box img {
        display: none;
    }
}

@media screen and (max-width: 500px) {
    .medication .medication-contents h2 {
        font-size: 36px;
    }
}


.characteristics {
    padding: 2rem 0;
    background-color: var(--secondary-color);
}

@media screen and (min-width: 1000px) {
    .characteristics {
        padding: 4rem 0;
    }
}

.characteristics .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.characteristics .characteristics-image h2 {
    font-size: 26px;
    color: white;
    font-weight: 500;
    max-width: 460px;
    text-align: center;
    display: none;
}

@media screen and (max-width: 1000px) {
    .characteristics .characteristics-image h2 {
        display: flex;
    }
}

.characteristics .characteristics-image img {
    width: 100%;
    max-width: 500px;
}

.characteristics .characteristics-contents {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.characteristics .characteristics-contents h2 {
    font-size: 26px;
    color: white;
    font-weight: 500;
    max-width: 460px;
    text-align: left;
}

.characteristics .characteristics-contents p {
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    text-align: left;
}

@media screen and (max-width: 1000px) {
    .characteristics .characteristics-contents h2 {
        display: none;
    }

    .characteristics .container {
        gap: 0;
    }
}

@media screen and (max-width: 450px) {
    .characteristics .characteristics-contents p {
        text-align: center;
    }
}


.characteristics .characteristics-contents ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.characteristics .characteristics-contents ul li {
    font-size: 14px;
    color: white;
    font-weight: 500;
    position: relative;
    padding-left: 3rem;
}

.characteristics .characteristics-contents ul li img {
    margin-right: 20px;
}

.characteristics .characteristics-contents ul li span {
    color: #E0E28C;
}

.characteristics .characteristics-contents ul li::before {
    content: "";
    width: 30px;
    height: 30px;
    background: url(../images/icons/check.svg);
    background-size: cover;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.section-warn {
    height: 80px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
}

.section-warn img:first-child {
    height: 100%;
}

.section-warn .warn-contents {
    font-size: 11px;
}

.section-warn .warn-contents span {
    font-weight: 600;
}

.section-warn img:last-child {
    max-width: 50px;
}

@media screen and (min-width: 650px) {
    .section-warn .warn-contents {
        font-size: 14px;
    }

}


@media screen and (min-width: 1000px) {
    .characteristics .characteristics-contents h2 {
        text-align: left;
        font-size: 28px;
    }

    .characteristics .characteristics-contents p {
        font-size: 16px;
        text-align: left;
    }

    .characteristics .characteristics-contents ul li {
        font-size: 16px;
    }
}

@media screen and (max-width: 1000px) {
    .characteristics .container {
        flex-direction: column;
    }
}


.faq {
    padding: 4rem 0;
}

.faq .container {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.faq .faq-contents h2 {
    font-size: 32px;
    color: var(--secondary-color);
    font-weight: 600;
    line-height: 40px;
    max-width: 300px;
}

.faq .faq-list {
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq .faq-list .question-item {
    background-color: var(--secondary-color);
    cursor: pointer;
    padding: 20px;
    transition: all .5s ease;
    border-radius: 10px;
}

.question-item .question {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 3rem;
}

.faq .faq-list .question-item .question::after {
    content: "";
    width: 15px;
    height: 15px;
    background: url(../images/icons/arrow-2.svg);
    position: absolute;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    right: 1rem;
    transform: rotate(270deg);
    transition: transform .5s ease;
}

.faq .faq-list .question-item.active .question::after {
    transform: rotate(360deg);
}

.faq .faq-list .question-item .question h6 {
    color: white;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 1px;
}

.faq .faq-list .question-item .answer {
    max-height: 0;
    overflow: hidden;
    transition: all .5s ease;
}

.faq .faq-list .question-item.active .answer {
    max-height: 100px;
    padding-top: 1rem;
    transition: all .5s ease;
}

.faq .faq-list .question-item .answer p {
    color: white;
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
}

@media screen and (max-width: 900px) {
    .faq .container {
        flex-direction: column;
    }

    .faq .faq-contents {
        display: flex;
        justify-content: center;
    }

    .faq .faq-contents h2 {
        text-align: center;
    }

    .faq .faq-list {
        max-width: 100%;
    }
}

.footer {
    width: 100%;
    padding: 4rem 0;
    background-color: var(--tertiary-color);
}

.footer .footer-contents {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

.footer .footer-contents p {
    color: white;
}

.footer .footer-contents .footer-logo {
    max-width: 150px;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer .footer-menu {
    width: 100%;
    max-width: 700px;
    display: flex;
    justify-content: space-between;
    gap: 2rem;

}

.footer .footer-menu .column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer .footer-menu .column h6 {
    font-size: 16px;
    color: white;
    text-transform: uppercase;
}

.footer .footer-menu .column .menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer .footer-menu .column .menu li {
    color: white;
    opacity: 0.6;
}

.footer .footer-menu .column .legitscriptbadge {
    max-width: 150px;
    width: 100%;
}

@media screen and (max-width: 1050px) {
    .footer .container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .footer .footer-contents {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}

@media screen and (max-width: 600px) {
    .footer .footer-menu {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .footer .footer-menu .column {
        text-align: center;
    }
}

.float-sticky {
    width: 100%;
    background-color: white;
    padding: 1.5rem 1rem;
    position: sticky;
    bottom: 0;
    border: none;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    -webkit-box-shadow: 0px -5px 20px 0px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0px -5px 20px 0px rgba(0, 0, 0, 0.25);
    box-shadow: 0px -5px 20px 0px rgba(0, 0, 0, 0.25);
}

.float-sticky p {
    font-size: 14px;
    font-weight: 600;
}

.float-sticky .sticky-contents {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

@media screen and (min-width: 1000px) {
    .float-sticky {
        display: none;
    }
}

.ping-container {
    position: relative;
    display: inline-flex;
    height: 12px;
    width: 12px;
}

.ping-effect {
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    background-color: #22c55e;
    opacity: 0.75;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ping-dot {
    position: relative;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background-color: #22c55e;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}