/* Evaluation Styles - Redesign (Overcooked Theme) */

:root {
    /* Using style.css variables where possible, adding specific ones here */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--primary-red);
    overflow-x: hidden;
    font-family: 'Montserrat';
    color: var(--primary-dark);
    margin: 0;
}

body::before {
    display: none;
}

/* Wrapper */
.evaluation-page-wrapper {
    min-height: 95vh;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Decoration */
.bg-decoration-right {
    position: absolute;
    bottom: -5%;
    right: -5%;
    width: 600px;
    height: auto;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    filter: brightness(0) invert(1);
}

/* Typography */
.page-title {
    font-weight: 950;
    text-transform: uppercase;
    color: var(--white);
    text-align: center;
    line-height: 1;
    margin: 0;
    font-size: 3rem;
    letter-spacing: -1px;
    text-shadow:
        3px 3px 0 #282828,
        -3px 3px 0 #282828,
        3px -3px 0 #282828,
        -3px -3px 0 #282828,
        3px 0 0 #282828,
        -3px 0 0 #282828,
        0 3px 0 #282828,
        0 -3px 0 #282828;
}

.big-title {
    font-size: 5rem;
    margin-bottom: 40px;
}

/* Start Screen */
.start-screen {
    position: relative;
    z-index: 10;
}

.start-content {
    text-align: center;
}

.logo-container {
    margin-bottom: 30px;
}

.floating-logo {
    width: 300px;
    height: auto;
    animation: float 3s ease-in-out infinite;
}



/* Evaluation Container */
.evaluation-container {
    max-width: 650px;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Progress Icons */
.progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.progress-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.progress-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.progress-container {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.progress-icon {
    width: 40px;
    height: auto;
    transition: var(--transition-smooth);
    filter: brightness(0.4) saturate(0.2);
}

.progress-icon.active {
    filter: brightness(1) saturate(1);
    transform: scale(1.1);
}

/* Card Styling */
.evaluation-card {
    background: var(--white);
    border: 3px solid var(--primary-dark);
    border-radius: 24px;
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.8);
    min-height: 380px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.question-text {
    font-size: 1.4rem;
    font-weight: 850;
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.thai-subtitle {
    font-family: 'FC Vision', sans-serif;
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 40px;
    font-weight: 500;
}

/* Rating Grid */
.rating-options-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.rating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}

.rating-box {
    width: 55px;
    height: 55px;
    background: var(--white);
    border: 2px solid var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 900;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--primary-dark);
    padding: 0;
}

.rating-box.selected {
    background: var(--primary-dark);
    color: var(--white);
}

.rating-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #666;
    text-transform: capitalize;
    line-height: 1.3;
}

.label-left {
    position: absolute;
    right: 100%;
    margin-right: 15px;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
    white-space: nowrap;
}

.label-right {
    position: absolute;
    left: 100%;
    margin-left: 15px;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    white-space: nowrap;
}

/* Comment Input */
#comment-input {
    width: 100%;
    border: 2px solid #ddd;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 20px;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    transition: var(--transition-smooth);
}

#comment-input:focus {
    outline: none;
    border-color: var(--primary-dark);
    background: var(--white);
}

/* Success Screen */
.success-container {
    padding: 20px;
}

.logo-container-small img {
    width: 80px;
    margin-bottom: 20px;
}

.success-title {
    font-size: 4rem;
    margin-bottom: 15px;
}

.success-desc {
    font-size: 1rem;
    color: var(--white);
    font-weight: 500;
    margin-bottom: 40px;
}

/* Layered Buttons */
.layered-btn-wrapper {
    position: relative;
    display: inline-block;
}

.layered-btn-bg {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 4px;
    z-index: 1;
}

.start-btn,
.next-btn,
.submit-btn,
.home-btn {
    position: relative;
    background: var(--primary-dark);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 800;
    padding: 10px 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.start-btn {
    padding: 15px 60px;
    font-size: 1.4rem;
}

.start-btn:hover,
.next-btn:hover:not(:disabled),
.submit-btn:hover,
.home-btn:hover {
    transform: translate(-2px, -2px);
}

.next-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Previous Button */
.prev-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 850;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.prev-btn:hover:not(:disabled) {
    transform: translateX(-5px);
}

.evaluation-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .evaluation-page-wrapper {
        padding: 40px 15px;
    }

    .big-title {
        font-size: 3rem;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .card-content {
        padding: 30px 15px;
    }

    .rating-options-grid {
        gap: 8px;
        align-items: flex-start;
        flex-wrap: nowrap;
    }

    .rating-box {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .rating-item {
        margin-bottom: 0;
    }

    .rating-item:first-child {
        flex-direction: column-reverse;
    }

    .rating-item:last-child {
        flex-direction: column;
    }

    .label-left,
    .label-right {
        position: static;
        transform: none;
        margin: 5px 0 0 0;
        text-align: center;
        font-size: 0.75rem;
    }

    .success-title {
        font-size: 3rem;
    }
}