:root {
    --primary-color: #e68a8a;
    /* Soft Rose Pink */
    --secondary-color: #ffe6e6;
    /* Pale Pink */
    --accent-color: #d15e5e;
    /* Deep Pink Accent */
    --text-color: #5d4a4a;
    /* Warm Brownish Grey */
    --bg-gradient-start: #fff0f0;
    /* Very Light Pink */
    --bg-gradient-end: #fadddd;
    /* Light Pink */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow: 0 8px 32px 0 rgba(210, 94, 94, 0.1);
    --font-main: 'Zen Kaku Gothic New', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    animation: rotate 60s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    position: relative;
}

.screen {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphism Card */
.content-box {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    text-align: center;
}

/* Typography */
h1.main-title {
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-color);
}

.subtitle {
    font-size: 1rem;
    font-weight: normal;
    color: var(--accent-color);
    display: block;
    margin-bottom: 5px;
}

.highlight {
    color: var(--accent-color);
    font-weight: 700;
}

.description {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    font-family: var(--font-main);
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(209, 168, 104, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(209, 168, 104, 0.6);
}

.secondary-btn {
    background: white;
    color: var(--accent-color);
    border: 1px solid var(--primary-color);
}

.secondary-btn:hover {
    background: var(--secondary-color);
}

.text-btn {
    background: transparent;
    color: #999;
    font-size: 0.9rem;
    padding: 10px;
}

.text-btn:hover {
    color: var(--text-color);
}

/* Question Screen */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.question-number {
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.question-text {
    font-size: 1.3rem;
    margin-bottom: 30px;
    min-height: 3.9em;
    /* Reserve space for 3 lines */
    display: flex;
    align-items: center;
    justify-content: center;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.option-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    font-family: var(--font-main);
}

.option-btn:hover {
    border-color: var(--primary-color);
    background: var(--secondary-color);
}

.option-label {
    background: var(--secondary-color);
    color: var(--accent-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 15px;
    flex-shrink: 0;
}

.option-text {
    font-size: 1rem;
    line-height: 1.4;
}

/* Loading */
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(209, 168, 104, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Results */
.result-header {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
}

.result-title {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-block {
    text-align: left;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.detail-block h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.detail-block h3 .icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

.detail-block p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    white-space: pre-wrap;
    /* Preserve formatting */
}

/* Responsive */
@media (max-width: 480px) {
    .content-box {
        padding: 30px 20px;
    }

    .question-text {
        font-size: 1.1rem;
    }

    h1.main-title {
        font-size: 1.5rem;
    }
}

/* Contact Form Styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #fff;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-family: var(--font-main);
    color: var(--text-color);
    outline: none;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(230, 138, 138, 0.2);
}

.form-input::placeholder {
    color: #bbb;
}