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

body {
    font-family: 'Roboto', sans-serif;
    background: #001f3f;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.page {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.4s ease-in;
}

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

h1 {
    color: #ec1464;
    font-size: 36px;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 700;
}

h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}

p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

button {
    background: linear-gradient(135deg, #ec1464 0%, #d01158 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: block;
    margin: 32px auto 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(236, 20, 100, 0.4);
    font-family: 'Roboto', sans-serif;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 20, 100, 0.6);
}

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

button:disabled {
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    cursor: not-allowed;
    box-shadow: none;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 32px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ec1464 0%, #d01158 100%);
    transition: width 0.3s ease;
}

.story-input {
    margin-bottom: 24px;
}

.story-input label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
}

.story-input textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s;
}

.story-input textarea:focus {
    outline: none;
    border-color: #ec1464;
}

.story-input input[type="text"],
.story-input input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.2s;
}

.story-input input[type="text"]:focus,
.story-input input[type="email"]:focus {
    outline: none;
    border-color: #ec1464;
}

.story-input.error input,
.story-input.error textarea {
    border-color: #d32f2f;
}

.error-message {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 4px;
    display: none;
}

.story-input.error .error-message {
    display: block;
}

.ranking-option {
    background: #f8f9fa;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    position: relative;
    user-select: none;
}

.ranking-option:hover {
    background: #e9ecef;
}

.ranking-option.ranked {
    background: linear-gradient(135deg, #ec1464 0%, #d01158 100%);
    color: white;
    border-color: #ec1464;
}

.ranking-option .rank-number {
    display: none;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #ec1464;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.ranking-option.ranked .rank-number {
    display: flex;
}

.report-section {
    margin-bottom: 48px;
}

.motivation-list {
    list-style: none;
    counter-reset: motivation-counter;
}

.motivation-list li {
    counter-increment: motivation-counter;
    background: #f8f9fa;
    padding: 24px;
    margin-bottom: 16px;
    border-radius: 12px;
    border-left: 4px solid #ec1464;
    position: relative;
    padding-left: 60px;
}

.motivation-list li::before {
    content: counter(motivation-counter);
    position: absolute;
    left: 16px;
    top: 24px;
    width: 32px;
    height: 32px;
    background: #ec1464;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.motivation-name {
    font-weight: 700;
    font-size: 20px;
    color: #ec1464;
    margin-bottom: 8px;
}

.motivation-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}

.motivation-bullets {
    list-style: disc;
    margin-left: 20px;
}

.motivation-bullets li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 6px;
    padding: 0;
    border: none;
    background: none;
}

.motivation-bullets li::before {
    display: none;
}

.dimension-card {
    background: #fff5f9;
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 12px;
    border-left: 4px solid #ec1464;
}

.dimension-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ec1464 0%, #d01158 100%);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 16px;
}

.dimension-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}

.dimension-characteristics {
    list-style: disc;
    margin-left: 20px;
}

.dimension-characteristics li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 6px;
}

.question-instruction {
    background: #f0f4ff;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    border-left: 4px solid #ec1464;
}

.question-instruction p {
    margin: 0;
    color: #555;
    font-weight: 500;
}

.language-selector {
    margin-bottom: 30px;
    text-align: center;
}

@media (min-width: 768px) {
    .language-selector {
        text-align: right;
    }
}

.language-selector label {
    display: inline-block;
    color: #555;
    font-weight: 600;
    margin-right: 8px;
    font-size: 14px;
    vertical-align: middle;
}

.desktop-label {
    display: none;
}

.mobile-label {
    display: inline;
}

@media (min-width: 768px) {
    .desktop-label {
        display: inline;
    }

    .mobile-label {
        display: none;
    }
}

@media (max-width: 767px) {
    .language-selector label {
        display: block;
        margin-right: 0;
        margin-bottom: 12px;
        font-size: 16px;
    }
}

.language-selector select {
    padding: 8px 16px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    min-width: 150px;
    transition: border-color 0.2s;
    vertical-align: middle;
}

@media (max-width: 767px) {
    .language-selector select {
        padding: 12px 20px;
        font-size: 16px;
        min-width: 200px;
    }
}

.language-selector select:focus {
    outline: none;
    border-color: #ec1464;
}

.ranking-helper {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ranking-helper.complete {
    background: #e8f5e9;
    color: #2e7d32;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading-spinner.active {
    display: block;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ec1464;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .page {
        padding: 24px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 20px;
    }

    button {
        padding: 14px 32px;
        font-size: 16px;
    }
}
