/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 300;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.notification {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    padding: 12px 20px;
    margin: 20px 0;
    border-radius: 8px;
    color: #8c6d1f;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Survey blocks container */
.survey-blocks {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Individual block styles */
.block {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e8ed;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.block-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f3f6;
}

.block-number {
    display: inline-block;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    color: #007c91;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #b2ebf2;
}


/* Transcript styles */
.transcript {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8fafc;
    border-left: 4px solid #4facfe;
    border-radius: 6px;
}

.transcript p {
    font-size: 1.1rem;
    font-style: italic;
    color: #2d3748;
    margin: 0;
    line-height: 1.7;
}

/* Audio row and column styles */
.audio-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: start;
}

.audio-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.audio-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

/* Audio player styles */
audio {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: box-shadow 0.2s ease;
}

audio:focus {
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.3);
}

/* Custom audio controls styling (where supported) */
audio::-webkit-media-controls-panel {
    background-color: #ffffff;
    border-radius: 8px;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-pause-button {
    background-color: #4facfe;
    border-radius: 50%;
}

/* Footer styles */
.footer {
    text-align: center;
    margin-top: 50px;
    padding: 25px;
    background: #2d3748;
    color: white;
    border-radius: 12px;
}

.footer p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .audio-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .block {
        padding: 20px;
    }
    
    .transcript p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .block {
        padding: 15px;
    }
    
    .transcript {
        padding: 15px;
    }
}