/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff8fa3;
    --primary-light: #ffb3c1;
    --secondary-color: #ffb5a7;
    --background-color: #fdf0f0;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-main: #5c4d4d;
    --text-light: #8c7a7a;
    --shadow: 0 8px 32px rgba(255, 143, 163, 0.15);
}

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    background: linear-gradient(135deg, #fdf0f0 0%, #fff0f5 100%);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.app-container {
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 40px 24px;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    position: absolute;
    top: 40px;
    left: 24px;
    right: 24px;
    visibility: hidden;
}

.screen.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
}

.screen.hidden {
    display: none;
}

/* Start Screen */
.header-illustration {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

h1 {
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--text-main);
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--primary-light);
    opacity: 0.4;
    z-index: -1;
    border-radius: 4px;
}

.subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.benefit-item {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid rgba(255, 143, 163, 0.2);
}

/* Buttons */
.primary-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 8px 20px rgba(255, 143, 163, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 143, 163, 0.4);
}

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

/* Question Screen */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 143, 163, 0.15);
    border-radius: 4px;
    margin-bottom: 24px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    width: 0%;
    transition: width 0.4s ease;
}

.question-count {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 16px;
}

.question-text {
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 40px;
    min-height: 80px;
}

.options-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.option-btn {
    background: white;
    border: 2px solid rgba(255, 143, 163, 0.2);
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.option-btn:hover {
    border-color: var(--primary-color);
    background: rgba(255, 143, 163, 0.05);
    transform: translateX(4px);
}

/* Result Screen */
.result-pretext {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.result-card {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    border: 2px solid var(--primary-light);
    margin-bottom: 32px;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-image {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(255, 143, 163, 0.2);
    border: 4px solid white;
}

.result-title {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.result-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
}

/* Form Styles */
.form-section {
    background: white;
    padding: 32px 24px;
    border-radius: 20px;
    width: 100%;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    border: 2px solid var(--primary-light);
    text-align: left;
}

.form-section h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.form-desc {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.required {
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fafafa;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-group.vertical {
    flex-direction: column;
    gap: 8px;
}

.radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 8px 20px rgba(255, 143, 163, 0.3);
    font-family: inherit;
    transition: transform 0.2s;
    margin-top: 16px;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

#thanks-message {
    background: white;
    padding: 32px;
    border-radius: 20px;
    width: 100%;
    margin-bottom: 24px;
    text-align: center;
    border: 2px solid var(--primary-light);
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.thanks-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.hidden {
    display: none !important;
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
