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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 40px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 40px
        ),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 28px;
    text-align: center;
}

.subtitle {
    color: #666;
    text-align: left;
    margin-bottom: 40px;
    font-size: 16px;
}

.question-block {
    margin-bottom: 30px;
}

label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.text-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.text-input:focus {
    outline: none;
    border-color: #667eea;
}

.voice-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.3s;
    font-family: inherit;
}

.voice-btn:hover {
    background: #ebebeb;
    border-color: #667eea;
}

.mic-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.voice-recorder {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 10px;
}

.recorder-hint {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    font-style: italic;
}

.back-to-text-btn {
    display: block;
    margin: 15px auto 0;
    padding: 10px 20px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.back-to-text-btn:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.recorder-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.record-btn,
.stop-btn,
.play-btn,
.pause-btn,
.stop-playback-btn,
.delete-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.record-btn {
    background: #ef4444;
    color: white;
}

.record-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.record-btn.recording {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.stop-btn {
    background: #f59e0b;
    color: white;
}

.stop-btn:hover {
    background: #d97706;
    transform: scale(1.1);
}

.play-btn {
    background: #10b981;
    color: white;
}

.play-btn:hover {
    background: #059669;
    transform: scale(1.1);
}

.play-btn.playing {
    background: #f59e0b;
}

.pause-btn {
    background: #f59e0b;
    color: white;
}

.pause-btn:hover {
    background: #d97706;
    transform: scale(1.1);
}

.stop-playback-btn {
    background: #ef4444;
    color: white;
}

.stop-playback-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.delete-btn {
    background: #6b7280;
    color: white;
}

.delete-btn:hover {
    background: #ef4444;
    transform: scale(1.1);
}

.record-btn svg,
.stop-btn svg,
.play-btn svg,
.pause-btn svg,
.stop-playback-btn svg,
.delete-btn svg {
    width: 24px;
    height: 24px;
}

.timer {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    min-width: 100px;
    text-align: center;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-label:hover {
    background: #f0f0f0;
    border-color: #667eea;
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #667eea;
}

.radio-label span {
    font-weight: 400;
    color: #333;
}

.checkbox-group-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.checkbox-label:hover {
    background: #f0f0f0;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #667eea;
}

.checkbox-label span {
    font-weight: 400;
    color: #333;
}

.conditional-field {
    margin-top: 15px;
    padding: 15px;
    background: #f0f5ff;
    border-radius: 8px;
    border: 2px solid #667eea;
    animation: slideDown 0.3s ease-out;
}

.contact-form {
    background: #f9f9f9;
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    animation: slideDown 0.3s ease-out;
}

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

.contact-form input[type="text"],
.contact-form input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-form input:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    text-align: center;
    padding: 40px;
}

.success-message h2 {
    color: #10b981;
    margin-bottom: 10px;
}

.success-message p {
    color: #666;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    .voice-btn {
        font-size: 12px;
        padding: 10px 12px;
    }

    .recorder-controls {
        flex-wrap: wrap;
    }
}
