﻿/* ========== MODAL STYLES (GENERAL) ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: white;
    border-radius: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e4e4e7;
}

.modal-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-logo-img {
    height: 35px;
    width: auto;
}

.modal-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #18181b;
}

.modal-close {
    background: #f4f4f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: #52525b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e4e4e7;
    color: #18181b;
    transform: scale(0.96);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.question-item {
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.question-text {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #18181b;
    font-size: 1rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #e4e4e7;
    cursor: pointer;
    transition: all 0.2s;
}

.option-label:hover {
    border-color: #7c3aed;
    background: #f3e8ff;
    transform: translateX(4px);
}

.option-label input {
    accent-color: #7c3aed;
    width: 18px;
    height: 18px;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e4e4e7;
    display: flex;
    justify-content: space-between;
}

.btn-modal-back,
.btn-modal-next,
.btn-modal-submit {
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-modal-back {
    background: #f4f4f5;
    color: #52525b;
}

.btn-modal-back:hover {
    background: #e4e4e7;
}

.btn-modal-next,
.btn-modal-submit {
    background: #7c3aed;
    color: white;
}

.btn-modal-next:hover,
.btn-modal-submit:hover {
    background: #6d28d9;
    transform: scale(1.02);
}

.modal-progress {
    height: 4px;
    background: #e4e4e7;
    border-radius: 2px;
    margin: 0 1.5rem 1rem;
    overflow: hidden;
}

.modal-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #2563eb);
    transition: width 0.3s ease;
}

/* ========== LOGIN MODAL ========== */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1001;
    display: none;
    justify-content: center;
    align-items: center;
}

.login-modal-overlay.active {
    display: flex;
}

.login-modal-container {
    background: white;
    border-radius: 2rem;
    max-width: 450px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.3s ease-out;
}

.login-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e4e4e7;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.login-modal-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.login-modal-logo-img {
    height: 35px;
    width: auto;
}

.login-modal-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #18181b;
}

.login-modal-close {
    background: #f4f4f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: #52525b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.login-modal-close:hover {
    background: #e4e4e7;
    color: #18181b;
    transform: scale(0.96);
}

.login-modal-body {
    padding: 1.5rem;
}

.login-modal-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    color: #dc2626;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-modal-error.hidden {
    display: none;
}

.login-input-group {
    margin-bottom: 1.5rem;
}

.login-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #18181b;
    margin-bottom: 0.5rem;
}

.login-input-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #e4e4e7;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.login-input-group input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.login-input-group input.error {
    border-color: #dc2626;
}

.login-modal-btn {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: white;
    border: none;
    padding: 0.85rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -8px rgba(124, 58, 237, 0.3);
}

.login-modal-footer {
    text-align: center;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #e4e4e7;
    background: #fafafa;
}

.login-modal-footer a {
    color: #7c3aed;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.login-modal-footer a:hover {
    text-decoration: underline;
}

.login-modal-footer p {
    color: #71717a;
    font-size: 0.75rem;
    margin-top: 0.75rem;
}

/* ========== REVIEW BOX ========== */
.review-box {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e4e4e7;
    transition: all 0.3s ease;
}

.review-box.disabled {
    background: #f4f4f5;
    opacity: 0.6;
}

.review-box.active {
    background: #ffffff;
    opacity: 1;
}

.review-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #18181b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-lock-overlay:hover {
    background: rgba(255, 255, 255, 0.75);
}

.review-lock-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.review-lock-text {
    font-size: 0.75rem;
    color: #71717a;
    font-weight: 500;
}

.review-inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
}

.review-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-avatar span {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.review-input-area {
    flex-grow: 1;
    background: #f4f4f5;
    border-radius: 0.75rem;
    padding: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #18181b;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.review-input-area.disabled {
    color: #a1a1aa;
    font-style: italic;
}

.review-input-area textarea {
    width: 100%;
    background: transparent;
    border: none;
    resize: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    color: #18181b;
}

.review-input-area textarea::placeholder {
    color: #a1a1aa;
    font-style: italic;
}

.review-submit-btn {
    background: #d4d4d8;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.review-box.active .review-submit-btn {
    background: #7c3aed;
}

.review-box.active .review-submit-btn:hover {
    background: #6d28d9;
}

.review-success-msg {
    padding: 0 1.5rem 1.5rem 1.5rem;
    text-align: center;
    color: #166534;
    font-size: 0.85rem;
    display: none;
}

.review-success-msg.show {
    display: block;
}

