/* ===================================
   GLOEIN SKINSCAN
=================================== */

.gloein-scan-page {
    background: #f7f8f5;
    min-height: 100vh;
    padding: 70px 20px;
}

.gloein-scan-container {
    max-width: 950px;
    margin: auto;
}


/* PROGRESS BAR */

.scan-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 70px;
}

.progress-step {
    text-align: center;
    color: #9aa19b;
}

.progress-step span {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    border-radius: 50%;
    border: 1px solid #cfd5cf;
    background: white;
    font-size: 14px;
}

.progress-step p {
    margin-top: 8px;
    font-size: 13px;
}

.progress-step.active {
    color: #2f655b;
}

.progress-step.active span {
    background: #2f655b;
    color: white;
    border-color: #2f655b;
}

.progress-line {
    width: 120px;
    height: 1px;
    background: #d7ddd8;
    margin: 0 15px;
}


/* STEPS */

.scan-step {
    display: none;
}

.scan-step.active-step {
    display: block;
}


/* HEADING */

.scan-page-heading,
.results-heading {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 45px;
}

.gloein-tag {
    font-size: 11px;
    letter-spacing: 2px;
    color: #66877e;
    margin-bottom: 15px;
    font-weight: 600;
}

.scan-page-heading h1,
.results-heading h1 {
    font-size: 48px;
    line-height: 1.1;
    color: #253c36;
    margin-bottom: 18px;
}

.scan-page-heading p,
.results-heading p {
    font-size: 17px;
    color: #6f7772;
}


/* PHOTO UPLOAD */

.photo-upload-area {
    max-width: 650px;
    margin: auto;
    background: white;
    border: 2px dashed #cbd5cf;
    border-radius: 22px;
    padding: 60px 30px;
    text-align: center;
    transition: 0.3s;
}

.photo-upload-area.dragover {
    border-color: #2f655b;
    background: #f2f7f4;
}

.upload-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #e6f0ec;
    color: #2f655b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    font-size: 32px;
}

.photo-upload-area h3 {
    font-size: 24px;
    color: #253c36;
    margin-top: 20px;
}

.photo-upload-area p {
    color: #747b77;
    max-width: 400px;
    margin: 12px auto;
}

#choose-photo,
#continue-photo,
#analyze-skin {
    background: #2f655b;
    color: white;
    border: none;
    padding: 15px 28px;
    border-radius: 30px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.3s;
}

#choose-photo:hover,
#continue-photo:hover,
#analyze-skin:hover {
    background: #1f4b43;
}

.photo-upload-area small {
    display: block;
    margin-top: 20px;
    color: #9aa19b;
}


/* IMAGE PREVIEW */

#image-preview-container img {
    max-width: 100%;
    max-height: 450px;
    border-radius: 18px;
    object-fit: cover;
}

.photo-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

#change-photo,
#back-photo,
#restart-scan {
    border: 1px solid #bfc9c3;
    background: white;
    padding: 14px 25px;
    border-radius: 30px;
    cursor: pointer;
}


/* GUIDELINES */

.photo-guidelines {
    max-width: 650px;
    margin: 40px auto;
    text-align: center;
}

.photo-guidelines h3 {
    color: #253c36;
}

.guideline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.guideline-grid div {
    background: white;
    padding: 15px;
    border-radius: 12px;
    color: #65706a;
}


/* QUESTIONS */

.question-card {
    background: white;
    padding: 30px;
    border-radius: 18px;
    margin-bottom: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.04);
}

.question-card h3 {
    color: #253c36;
    margin-bottom: 20px;
}

.answer-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.answer-option {
    padding: 12px 20px;
    border: 1px solid #d6ddd8;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

.answer-option:hover,
.answer-option.selected {
    background: #2f655b;
    color: white;
    border-color: #2f655b;
}

.question-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}


/* PROCESSING */

.processing-box {
    text-align: center;
    padding: 100px 20px;
}

.processing-box h2 {
    color: #253c36;
    margin-top: 30px;
}

.processing-box p {
    color: #748079;
}

.processing-animation {
    width: 140px;
    height: 140px;
    margin: auto;
    position: relative;
}

.scan-ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid #dce7e2;
    border-top-color: #2f655b;
    animation: gloeinRotate 1.5s linear infinite;
}

@keyframes gloeinRotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* RESULTS */

.skin-score-card {
    background: #294f47;
    color: white;
    border-radius: 25px;
    padding: 45px;
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 30px;
}

.overall-score {
    text-align: center;
    min-width: 220px;
}

.score-circle {
    width: 150px;
    height: 150px;
    border: 5px solid #8fc1b2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.score-circle span {
    font-size: 52px;
}

.score-circle small {
    margin-left: 5px;
}

.overall-score h3 {
    margin-top: 15px;
}

.score-description h2 {
    color: white;
}

.score-description p {
    color: #d4e2dc;
}


/* METRICS */

.skin-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.metric-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
}

.metric-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #31473f;
}

.metric-bar {
    height: 8px;
    background: #e5ebe7;
    border-radius: 10px;
    overflow: hidden;
}

.metric-bar div {
    height: 100%;
    background: #4f8a7b;
    border-radius: 10px;
}


/* DISCLAIMER */

.results-disclaimer {
    margin-top: 30px;
    padding: 18px;
    background: #eef2ef;
    color: #66726b;
    border-radius: 12px;
    font-size: 13px;
    text-align: center;
}


/* RESULT BUTTONS */

.results-actions {
    text-align: center;
    margin-top: 35px;
}

.view-routine {
    display: inline-block;
    margin-left: 15px;
    padding: 15px 25px;
    background: #2f655b;
    color: white;
    border-radius: 30px;
    text-decoration: none;
}


/* MOBILE */

@media (max-width: 768px) {

    .gloein-scan-page {
        padding: 40px 15px;
    }

    .scan-page-heading h1,
    .results-heading h1 {
        font-size: 36px;
    }

    .progress-line {
        width: 50px;
    }

    .skin-score-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .skin-metrics {
        grid-template-columns: 1fr;
    }

    .guideline-grid {
        grid-template-columns: 1fr;
    }

}