@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-color: #08080a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-gradient: linear-gradient(135deg, #6366f1, #a855f7);
    --accent-hover: #818cf8;
    --star-empty: rgba(255, 255, 255, 0.15);
    --star-filled: #fde047; /* Soft gold for premium feel */
    --star-hover: #fef08a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
    position: relative;
    overflow-x: hidden;
}

/* Elegant ambient background glows */
body::before, body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

body::before {
    top: -100px;
    left: -100px;
    background: #6366f1;
}

body::after {
    bottom: -100px;
    right: -100px;
    background: #a855f7;
}

.survey-container {
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    width: 100%;
    max-width: 650px;
    padding: 56px 48px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

header {
    text-align: center;
    margin-bottom: 48px;
}

.area15-logo-svg {
    height: 40px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.area15-subtitle {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

header p {
    margin: 0;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

.question-group {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: opacity 0.4s ease;
}

.question-group:last-of-type {
    border-bottom: none;
    margin-bottom: 32px;
}

.question-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.question-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    line-height: 1.5;
    font-weight: 300;
}

/* Star Ratings - Alignment Fixed */
.star-rating {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 40px;
    cursor: pointer;
    margin-bottom: 12px;
}

.star {
    color: var(--star-empty);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    line-height: 1;
}

.star:hover,
.star.hovered {
    color: var(--star-hover);
    transform: scale(1.15);
}

.star.selected {
    color: var(--star-filled);
    transform: scale(1.1);
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 10%; /* Insets labels to align better with the centered stars */
}

/* NPS Rating */
.nps-rating {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 16px;
}

.nps-number {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.nps-number:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nps-number.selected {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    font-weight: 600;
}

.nps-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Textarea */
textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--accent-hover);
    background: rgba(0, 0, 0, 0.3);
}

.optional {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    filter: brightness(1.1);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Thank You Message */
#thank-you-message {
    text-align: center;
    padding: 40px 20px;
}

.thank-you-icon {
    font-size: 48px;
    color: #a855f7;
    margin-bottom: 24px;
}

#thank-you-message h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

#thank-you-message p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

/* Responsive */
@media (max-width: 600px) {
    .survey-container {
        padding: 40px 24px;
    }
    .nps-rating { gap: 4px; }
    .nps-number { padding: 12px 0; font-size: 13px; }
    .scale-labels { padding: 0; }
}
