:root {
    --primary-color: #3b82f6;
    /* Modern Blue */
    --primary-hover: #2563eb;
    --bg-light: #f8fafc;
    /* Very Light Blue/Gray */
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    background-image:
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.05) 0px, transparent 50%);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: var(--shadow-strong);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

/* Subtle accent line at top */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #60a5fa, #3b82f6);
}

.header h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.header p {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
}

.rating-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-section label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 42px;
}

.stars span {
    cursor: pointer;
    color: #e2e8f0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stars span.active {
    color: #f59e0b;
    /* Golden Yellow */
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    transform: scale(1.15);
}

.stars span:hover {
    transform: scale(1.25);
    color: #fbbf24;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.input-section label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    padding-left: 2px;
}

textarea {
    width: 100%;
    background: #fcfdfe;
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 15px;
    resize: none;
    height: 130px;
    outline: none;
    transition: all 0.3s ease;
}

textarea:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.35);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

.footer-signature {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    letter-spacing: 0.3px;
}

#statusMsg .error {
    color: #ef4444;
    font-size: 14px;
    font-weight: 500;
    margin-top: -10px;
}

.success-screen {
    padding: 20px 0;
}

.success-screen h2 {
    color: #10b981;
    margin-bottom: 12px;
}

.success-screen p {
    color: var(--text-muted);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .card {
        padding: 40px 24px;
        border-radius: 20px;
    }

    .stars {
        font-size: 36px;
    }
}