body {
    background: url('../garden-blossom.jpg') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
}

.overlay {
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.cream-panel {
    background-color: var(--cream);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    color: var(--dark);
}

h1 {
    color: var(--primary);
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.q-title {
    display: block;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 8px;
    color: var(--dark);
}

.q-desc {
    display: block;
    font-size: 1em;
    margin-bottom: 20px;
    color: #444;
    line-height: 1.6;
}

.progress {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.step.active {
    display: block;
}

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

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    padding: 0;
    display: block;
    width: 100%;
}

.options-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.option-lbl {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95em;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
    color: #000;
}

.option-lbl:hover {
    border-color: var(--primary);
    background: #fff5f8;
}

input[type="radio"],
input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--primary);
    width: 20px;
    height: 20px;
}

.feeling-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.feeling-square {
    flex-shrink: 0;
    font-size: 1.1em;
}

.option-text {
    flex-grow: 1;
    word-wrap: break-word;
}

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1em;
    box-sizing: border-box;
    background: #fff;
    color: #000;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.nav-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.error-notice {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 12px;
    margin-top: 15px;
    display: none;
    border-radius: 4px;
    font-weight: bold;
    color: #856404;
}

/* Visually hidden honeypot */
.visually-hidden {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Optional question label */
.optional-label {
    font-size: 0.8em;
    font-weight: normal;
    color: #888;
    margin-left: 6px;
}

/* Submit loading spinner (WCAG 2.2.1 — visible loading state) */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* TTS active reading highlight */
.tts-reading {
    outline: 2px solid var(--primary, #d81b60);
    outline-offset: 2px;
    background-color: rgba(216, 27, 96, 0.08);
    border-radius: 3px;
    transition: background-color 0.15s;
}
