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

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #818cf8;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

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

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 800;
    position: relative;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    position: relative;
    font-weight: 400;
}

/* MVP Introduction */
.mvp-introduction {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    padding: 50px 40px;
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px;
}

.smart-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.smart-logo:hover {
    transform: scale(1.02);
}

.mvp-description h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.mvp-description .highlight {
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 35px;
    line-height: 1.5;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    display: grid;
    gap: 15px;
}

.feature-list li {
    padding: 20px 20px 20px 60px;
    position: relative;
    color: var(--text-primary);
    line-height: 1.7;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.feature-list li:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.5rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
}

form {
    padding: 50px 40px;
}

.form-section {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 2px solid var(--border-color);
    animation: fadeIn 0.6s ease-out;
}

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

.form-section:last-of-type {
    border-bottom: none;
}

.form-group {
    margin-bottom: 30px;
}

/* Rating Questions */
.question-label {
    display: block;
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.25rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.rating-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 12px;
}

.rating-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    position: relative;
    overflow: hidden;
}

.rating-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.rating-label:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.rating-label:hover::before {
    opacity: 0.05;
}

.rating-label input[type="radio"] {
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    cursor: pointer;
    accent-color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.rating-label span {
    font-size: 0.95rem;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.rating-label:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.rating-label:has(input[type="radio"]:checked) span {
    font-weight: 700;
    color: var(--primary-color);
}

/* GDPR Consent Section */
.gdpr-consent-section {
    border: none !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
}

.consent-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid var(--warning-color);
    border-radius: 16px;
    padding: 30px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 15px;
}

.consent-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.consent-label span {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #78350f;
    font-weight: 500;
}

.consent-label span a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.consent-label span a:hover {
    opacity: 0.7;
}

.form-actions {
    text-align: center;
    padding-top: 30px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    padding: 18px 60px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover::before {
    left: 100%;
}

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

.btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

.success-message {
    padding: 80px 40px;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.success-message h2 {
    color: var(--success-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.success-message p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.8;
}

footer {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 30px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
}

footer a {
    color: var(--primary-color);
    font-weight: 600;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.7;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--error-color);
}

@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    header {
        padding: 40px 20px;
    }

    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    form {
        padding: 30px 20px;
    }

    .mvp-introduction {
        padding: 30px 20px;
    }

    .smart-logo {
        max-width: 100%;
    }

    .mvp-description h2 {
        font-size: 1.9rem;
        margin-bottom: 20px;
    }

    .mvp-description .highlight {
        font-size: 1.1rem;
    }

    .logo-container {
        margin-top: 10px;
        margin-bottom: 30px;
    }

    .feature-list li {
        padding: 15px 15px 15px 50px;
        font-size: 0.95rem;
    }

    .feature-list li::before {
        left: 15px;
        width: 25px;
        height: 25px;
        font-size: 1.2rem;
    }

    .consent-box {
        padding: 20px;
    }

    .consent-label {
        gap: 10px;
    }

    .consent-label span {
        font-size: 0.95rem;
    }

    .form-section h2 {
        font-size: 1.5rem;
    }

    .question-label {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .rating-group {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .rating-label {
        padding: 15px 8px;
    }

    .rating-label input[type="radio"] {
        width: 24px;
        height: 24px;
        margin-bottom: 8px;
    }

    .rating-label span {
        font-size: 0.85rem;
    }

    .btn-primary {
        width: 100%;
        padding: 16px;
        font-size: 1.1rem;
    }
}

/* Loading state */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}
