/* Base Styles & Variables */
:root {
    --primary-color: #2a5885;
    --secondary-color: #8fb0c0;
    --accent-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ffffff;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    --border-radius: 5px;
    --transition: all 0.3s ease;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --font-size: 16px;
    --captcha-border: #d1d5db;
    --captcha-hover: #f9fafb;
}

/* High contrast theme (toggled by JS) */
body.high-contrast {
    --primary-color: #0046a6;
    --secondary-color: #fafafa;
    --dark-color: #000000;
    --light-color: #ffffff;
    --accent-color: #d00000;
    --border-color: #000000;
    --focus-outline: 3px solid #0046a6;
}

/* Base Elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size);
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8f9fa;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4 {
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--dark-color);
}

h1 {
    font-size: 1.8rem;
}

h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
}

h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
}

header h1 {
    margin-bottom: 0.5rem;
    color: var(--light-color);
}

header p {
    margin-bottom: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

header i {
    margin-right: 0.5rem;
}

/* Header Navigation */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-main {
    flex: 1;
}

.header-nav {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: var(--light-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--light-color);
}

.nav-link i {
    font-size: 0.9rem;
}

/* Responsive header navigation */
@media (max-width: 768px) {
    .header-content {
        text-align: center;
    }
    
    .header-nav {
        justify-content: center;
        width: 100%;
    }
}

/* Main Content */
main {
    padding: 2rem 0;
}

section {
    margin-bottom: 2rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

/* Intro Section */
.intro ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.intro li {
    margin-bottom: 0.5rem;
}

.disclaimer {
    background-color: var(--primary-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    border-left: 4px solid var(--dark-color);
}

/* Form Styles */
.appeal-form {
    position: relative;
}

.progress-bar {
    height: 5px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    width: 33.33%;
    transition: var(--transition);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="text"],
input[type="date"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #767676;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(58, 110, 165, 0.2);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-option input[type="radio"] {
    margin-right: 0.5rem;
    accent-color: var(--primary-color);
}

.radio-option label {
    margin-bottom: 0;
    font-weight: normal;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Form Buttons - Main PCN Form */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a5985 100%);
    color: var(--light-color);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(42, 88, 133, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: linear-gradient(135deg, #2a5985 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 88, 133, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.prev-btn {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #a8bfcb 100%);
    color: var(--dark-color);
    box-shadow: 0 4px 15px rgba(143, 176, 192, 0.3);
}

.prev-btn:hover {
    background: linear-gradient(135deg, #a8bfcb 0%, var(--secondary-color) 100%);
    box-shadow: 0 6px 20px rgba(143, 176, 192, 0.4);
}

.submit-btn:not(.modal-content .submit-btn) {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff5252 100%);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.submit-btn:not(.modal-content .submit-btn):hover {
    background: linear-gradient(135deg, #ff5252 0%, var(--accent-color) 100%);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Error Styles */
.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: block;
}

/* Turnstile/CAPTCHA Styles */
.captcha-section {
    margin: 1.5rem 0;
}

.turnstile-container {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background-color: var(--light-color);
    border: 2px solid var(--captcha-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.cf-turnstile {
    margin: 0 auto;
}

/* High contrast adjustments for Turnstile */
body.high-contrast .turnstile-container {
    border-color: var(--dark-color);
    border-width: 3px;
}

/* Email Capture Styles */
.email-capture-section {
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 1.5rem 0;
    text-align: center;
}

.email-capture-section h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.email-capture-section p {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    line-height: 1.6;
}

.email-capture-section .form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.email-capture-section label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.email-capture-section input[type="email"] {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--captcha-border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.email-capture-section input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(58, 110, 165, 0.2);
}

.email-form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.secondary-btn:hover {
    background-color: #7ba5b5;
}

/* High contrast adjustments for email capture */
body.high-contrast .email-capture-section {
    border: 3px solid var(--dark-color);
}

body.high-contrast .email-capture-section input[type="email"] {
    border-color: var(--dark-color);
    border-width: 3px;
}

/* Responsive adjustments for email form */
@media (max-width: 768px) {
    .email-form-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .email-form-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Results Section */
.results {
    padding: 1rem;
}

.results h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.results-section {
    min-height: 300px;
}

.hidden {
    display: none;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.advice-container {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

#api-error {
    text-align: center;
    padding: 2rem;
}

#api-error h3 {
    color: var(--error-color);
    margin-bottom: 1rem;
}

#api-error i {
    margin-right: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.accessibility-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.accessibility-controls button {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.footer-links {
    margin: 1rem 0;
}

.footer-links a {
    color: var(--light-color);
    text-decoration: none;
    padding: 0 0.5rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Rating visualization styles */
.rating-container {
    margin-bottom: 1rem;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    border: 1px solid #eee;
}

.rating-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-header h3 {
    margin-bottom: 0;
    flex-grow: 1;
}

.rating-value {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius);
    color: white;
    display: inline-flex;
    align-items: baseline;
    min-width: 100px;
    justify-content: center;
}

.rating-max {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-left: 0.2rem;
}

/* Assessment lists */
.assessment-lists {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.strengths-list h4, .weaknesses-list h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.strengths-list ul, .weaknesses-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.strength, .weakness {
    padding: 0.3rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
}

.strength i {
    color: var(--success-color);
}

.weakness i {
    color: var(--error-color);
}

/* Overall assessment view */
.assessment-view {
    animation: fadeIn 0.8s;
    margin-top: 0;
    margin-bottom: 0;
}

.assessment-view h3, .assessment-view h4 {
    color: var(--dark-color);
}

/* Initial assessment box */
.initial-assessment {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.initial-assessment h3 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.initial-assessment p {
    margin-bottom: 0;
}

/* Continue button */
.continue-container {
    text-align: center;
    margin: 1rem 0 0.25rem;
}

.continue-btn {
    background-color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
}

.continue-btn:hover {
    background-color: #2a5985;
}

/* Back button */
.back-btn {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.back-btn:hover {
    background-color: #a8bfcb;
}

/* Detailed advice section */
.detailed-advice {
    margin-top: 1rem;
}

.detailed-advice h2:first-of-type {
    margin-top: 0;
}

/* Animation for assessment view */
.assessment-view {
    animation: fadeIn 0.8s;
}

/* Additional Information Section */
.additional-info-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--secondary-color);
}

.additional-info-section h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.additional-info-section p {
    margin-bottom: 1rem;
}

.additional-info-section textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.additional-info-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(58, 110, 165, 0.2);
}

.additional-info-section .submit-btn {
    display: block;
    margin-left: auto;
}

/* Updated Advice Container */
.updated-advice-container {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--secondary-color);
}

.updated-advice-container.hidden {
    display: none;
}

.updated-advice h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.updated-advice-content {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    border: 1px solid #eee;
}

/* Loading state for updated advice */
#updated-loading {
    padding: 1.5rem;
    text-align: center;
}

#updated-loading .spinner {
    margin: 0 auto 1rem;
}

/* Animation for updated advice */
.updated-advice {
    animation: fadeIn 0.8s;
}

/* Media Queries */
@media (max-width: 576px) {
    .rating-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .rating-value {
        align-self: stretch;
        text-align: center;
    }
}

@media (min-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .radio-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .radio-option {
        width: calc(50% - 0.5rem);
    }
    
    footer .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .accessibility-controls {
        margin-top: 0;
    }

    .assessment-lists {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .container {
        width: 85%;
    }
    
    .radio-option {
        width: auto;
    }
    
    .form-navigation {
        justify-content: flex-end;
        gap: 1rem;
    }
}

/* Feedback Modal Styles */
.feedback-button-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.feedback-float-btn {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(42, 88, 133, 0.3);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
}

.feedback-float-btn:hover {
    background-color: #2a5985;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 88, 133, 0.4);
}

.feedback-float-btn i {
    font-size: 1rem;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--light-color);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--light-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header i {
    color: var(--accent-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-btn:hover {
    background: #f8f9fa;
    color: var(--dark-color);
}

.modal-body {
    padding: 0;
    height: 600px;
    overflow: hidden;
}

.form-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.loading-state p {
    margin-top: 1rem;
    margin-bottom: 0;
    color: var(--dark-color);
}

/* High contrast adjustments for modal */
body.high-contrast .modal-overlay {
    background: rgba(0, 0, 0, 0.9);
}

body.high-contrast .modal-content {
    border: 3px solid var(--dark-color);
}

body.high-contrast .modal-header {
    border-bottom-color: var(--dark-color);
    border-width: 3px;
}

body.high-contrast .feedback-float-btn {
    border: 3px solid var(--dark-color);
}

/* Responsive adjustments for feedback modal */
@media (max-width: 768px) {
    .feedback-button-container {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .feedback-float-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
        min-width: 100px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-body {
        height: 500px;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .feedback-float-btn span {
        display: none;
    }
    
    .feedback-float-btn {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        min-width: auto;
        padding: 0;
    }
    
    .feedback-float-btn i {
        margin: 0;
    }
}

/* Enhanced Emoji Feedback Modal Styles */

/* Override modal-header for emoji feedback */
.modal-header p {
    margin: 8px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
    color: white;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    color: white;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: white;
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 20px;
    height: auto;
    max-height: 70vh;
    overflow-y: auto;
}

.question {
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.question:nth-child(2) { animation-delay: 0.1s; }
.question:nth-child(3) { animation-delay: 0.2s; }
.question:nth-child(4) { animation-delay: 0.3s; }
.question:nth-child(5) { animation-delay: 0.4s; }
.question:nth-child(6) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-text {
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 15px;
    text-align: center;
}

.emoji-scale {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
}

.emoji-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 8px 4px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 1;
    border: 2px solid transparent;
    position: relative;
}

.emoji-option:hover {
    background: #f8f9fa;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.emoji-option.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
    border-color: #667eea;
}

.emoji-option.selected .emoji-label {
    color: white;
    font-weight: 600;
}

.emoji {
    font-size: 28px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.emoji-option:hover .emoji {
    transform: scale(1.2) rotate(5deg);
}

.emoji-option.selected .emoji {
    transform: scale(1.3);
    filter: brightness(1.1);
}

.emoji-label {
    font-size: 12px;
    color: #666;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.scale-note {
    text-align: center;
    font-size: 10px;
    color: #95a5a6;
    margin-top: 4px;
    font-style: italic;
}

.progress-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: all 0.3s ease;
}

.progress-dot.completed {
    background: #27ae60;
    transform: scale(1.2);
}

textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

.character-count {
    text-align: right;
    font-size: 12px;
    color: #95a5a6;
    margin-top: 4px;
}

.submit-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.submit-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    opacity: 0.6;
    transform: scale(0.95);
}

.submit-btn:enabled {
    opacity: 1;
    transform: scale(1);
}

.submit-btn:enabled:hover {
    background: linear-gradient(135deg, #219a52 0%, #27ae60 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.submit-btn:disabled {
    cursor: not-allowed;
}

.completion-message {
    text-align: center;
    color: #27ae60;
    font-size: 12px;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.completion-message.show {
    opacity: 1;
}

.success-state {
    display: none;
    text-align: center;
    padding: 40px 30px;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.success-emoji {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.success-title {
    font-size: 24px;
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 12px;
}

.success-message {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.close-success-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.close-success-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

/* Mobile Responsive for Emoji Feedback */
@media (max-width: 768px) {
    .modal-body {
        padding: 15px;
        max-height: 80vh;
    }
    
    .emoji-option {
        padding: 6px 2px;
    }
    
    .emoji {
        font-size: 24px;
    }
    
    .emoji-label {
        font-size: 10px;
    }
    
    .question {
        margin-bottom: 15px;
    }
    
    .question-text {
        font-size: 14px;
        margin-bottom: 8px;
    }
}