/* Root Variables - Vinyl Card Inspired Palette */
:root {
    --primary-color: #B52D2D; /* Deep red matching your vinyl cards */
    --secondary-color: #8B1F1F; /* Darker red for depth */
    --accent-color: #D4A574; /* Warm gold/beige accent */
    --dark-color: #2d1810; /* Warm dark brown */
    --light-color: #F5F1E8; /* Cream/beige background */
    --background: #1a1a1a; /* Keep dark for contrast */
    --surface: #F5F1E8; /* Cream surface like your cards */
    --surface-light: #FEFCF7; /* Lighter cream */
    --surface-dark: #E8E0D2; /* Slightly darker cream */
    --text-primary: #2d1810; /* Dark brown text on light surfaces */
    --text-secondary: #6B4E3D; /* Medium brown for secondary text */
    --text-light: #F5F1E8; /* Light text on dark surfaces */
    --vinyl-black: #0f0f0f;
    --vinyl-label: #B52D2D; /* Match primary red */
    --shadow: rgba(45, 24, 16, 0.15); /* Warm shadow */
    --glow: rgba(181, 45, 45, 0.25); /* Red glow */
    --border: rgba(181, 45, 45, 0.2); /* Subtle red border */
}

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

body {
    font-family: 'Crimson Text', serif;
    background: var(--surface);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Vinyl Background Animation */
.vinyl-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.08;
    pointer-events: none;
    filter: sepia(20%) saturate(1.2);
}

.vinyl-record {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--vinyl-black) 0%, #1a1a1a  70%, var(--vinyl-black) 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 50px rgba(0, 0, 0, 0.8),
        inset 0 0 50px rgba(255, 255, 255, 0.1);
}

.spinning {
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 
        0 0 20px var(--glow),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--surface);
}

.vinyl-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 24px;
    color: var(--light-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.vinyl-grooves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        transparent 0deg 1deg,
        rgba(255, 255, 255, 0.1) 1deg 2deg
    );
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 32px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.info-banner {
    background: var(--surface-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px var(--shadow);
}

.info-banner:hover {\n    transform: translateY(-1px);\n    box-shadow: 0 4px 12px var(--glow);\n    background: var(--primary-color);\n    color: var(--light-color);\n}\n\n/* Landing Section */
.landing-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero {
    margin-bottom: 80px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.title-line-1,
.title-line-2 {
    display: block;
    line-height: 1.1;
}

.title-line-2 {
    margin-top: -0.2em;
}

.highlight {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1em;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Album Preview */
.album-preview {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.album-cover {
    position: relative;
    width: 250px;
    height: 250px;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.album-cover:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

.album-spine {
    position: absolute;
    left: -10px;
    top: 0;
    width: 10px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px 0 0 2px;
}

.album-front {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
    border-radius: 8px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-shadow: 
        0 20px 40px var(--shadow),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    border: 1px solid var(--surface-light);
    box-sizing: border-box;
    overflow: hidden;
}

.album-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    line-height: 1.2;
}

.album-artist {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.2;
}

.album-center {
    font-size: 42px;
    color: var(--primary-color);
    opacity: 0.8;
}

/* CTA Section */
.cta-section {
    margin: 40px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 15;
}

.btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--secondary-color);
    padding: 16px 32px;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--light-color);
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
    position: relative;
    overflow: hidden;
    z-index: 20;
    backdrop-filter: blur(2px);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

.cta-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Features Section */
.features-preview {
    margin: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--surface);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--surface-light);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Progress Container */
.progress-container {
    position: sticky;
    top: 0;
    background: var(--surface);
    padding: 20px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 20px var(--shadow);
    margin-bottom: 30px;
    z-index: 100;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--surface-light);
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    background: var(--surface-light);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.6;
    box-shadow: 0 2px 8px var(--shadow);
}

.step.active {
    opacity: 1;
    background: var(--surface-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px var(--glow);
}

.step.completed {
    opacity: 1;
    background: var(--primary-color);
    border-color: var(--secondary-color);
    color: var(--light-color);
}

.step i {
    font-size: 18px;
}

.step span {
    font-family: 'Playfair Display', serif;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }
    
    .title-line-1 {
        font-size: 2rem;
    }
    
    .title-line-2 {
        font-size: 2rem;
        margin-top: 0.1em;
    }
    
    .heart-accent {
        font-size: 0.8em;
        margin: 0 4px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
        margin-bottom: 30px;
        line-height: 1.4;
    }
    
    .album-cover {
        width: 180px;
        height: 180px;
    }
    
    .album-title {
        font-size: 14px;
    }
    
    .album-artist {
        font-size: 11px;
    }
    
    .album-center {
        font-size: 32px;
    }
    
    .features-preview {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
        width: 100%;
        max-width: 400px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 30px;
        gap: 15px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .info-banner {
        font-size: 12px;
        padding: 6px 12px;
        border-radius: 16px;
    }
    
    .vinyl-record {
        width: 280px;
        height: 280px;
    }
    
    .vinyl-center {
        width: 80px;
        height: 80px;
    }
    
    .vinyl-label {
        font-size: 18px;
    }
    
    .progress-steps {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .form-container {
        padding: 25px 15px;
        margin: 10px;
        border-radius: 8px;
    }
    
    .step-header h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .step-header p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .btn-primary, .btn-secondary {
        width: calc(100% - 20px);
        max-width: 300px;
        justify-content: center;
        padding: 14px 20px;
        font-size: 16px;
        margin: 10px auto;
        display: flex !important;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .step span {
        display: none;
    }
    
    .form-container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
        text-align: center;
    }
    
    .cta-section {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary {
        width: auto;
        min-width: 250px;
        margin: 0 auto;
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .album-cover {
        width: 140px;
        height: 140px;
    }
    
    .album-title {
        font-size: 12px;
    }
    
    .album-artist {
        font-size: 10px;
    }
    
    .album-center {
        font-size: 28px;
    }
    
    .vinyl-record {
        width: 250px;
        height: 250px;
    }
    
    .vinyl-center {
        width: 60px;
        height: 60px;
    }
    
    .vinyl-label {
        font-size: 14px;
    }
    
    .form-container {
        padding: 20px 12px;
        margin: 5px;
    }
    
    .step-header h2 {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .step-header h2 i {
        font-size: 1.1rem;
    }
    
    .form-input {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    .cta-note {
        font-size: 13px;
        padding: 0 10px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo i {
        font-size: 24px;
    }
    
    /* Tracklist Mobile Fixes */
    .tracklist-item {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .tracklist-row {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-input {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Memory title and date should stack vertically */
    .tracklist-row .form-group:nth-child(2) {
        order: 1; /* Date first */
    }
    
    .tracklist-row .form-group:nth-child(1) {
        order: 2; /* Title below date */
    }
    
    .step-header h2 {
        font-size: 1.2rem !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: none !important;
    }
    
    .remove-track-btn {
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
}

/* Form Styles (for upcoming tracks) */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--shadow);
    border: 2px solid var(--border);
    position: relative;
}

.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.step-header h2 i {
    color: var(--primary-color);
}

.step-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.form-row {
    display: flex;
    gap: 20px;
    align-items: end;
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 30px;
}

.btn-secondary {
    background: var(--surface-light);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 14px 28px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px var(--shadow);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

/* Photo Upload Styles */
.photo-upload-group {
    margin-bottom: 30px;
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--surface-light);
    box-shadow: 0 4px 15px var(--shadow);
}

.photo-upload-container {
    margin-bottom: 16px;
}

.photo-preview {
    width: 100%;
    height: 200px;
    border: 2px dashed var(--surface-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--surface);
}

.photo-preview:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 107, 0.05);
}

.photo-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.photo-placeholder i {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--primary-color);
    display: block;
}

/* Voice Recording Styles */
.voice-section {
    text-align: center;
}

.voice-recorder {
    background: var(--background);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid var(--surface-light);
}

.recorder-display {
    margin-bottom: 20px;
}

.time-display {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.waveform {
    display: flex;
    justify-content: center;
    gap: 4px;
    height: 40px;
    align-items: center;
}

.wave-bar {
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.recorder-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.record-btn, .stop-btn, .play-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.record-btn {
    background: var(--primary-color);
    color: white;
}

.stop-btn {
    background: var(--dark-color);
    color: white;
}

.play-btn {
    background: var(--secondary-color);
    color: white;
}

.upload-option {
    margin: 20px 0;
}

.file-upload button {
    background: var(--surface-light);
    color: var(--text-primary);
    border: 2px solid var(--surface-light);
}

.voice-prompts {
    text-align: left;
    background: var(--surface);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.voice-prompts h4 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.voice-prompts ul {
    list-style: none;
    padding: 0;
}

.voice-prompts li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.voice-prompts li:before {
    content: "💭 ";
    margin-right: 8px;
}

/* Tracklist Styles */
.tracklist-item {
    margin-bottom: 24px;
    padding: 28px;
    background: var(--surface-light);
    border-radius: 16px;
    border: 2px solid var(--border);
    position: relative;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
}

.tracklist-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px var(--glow);
    transform: translateY(-2px);
}

.tracklist-item::before {
    content: '♥';
    position: absolute;
    top: -10px;
    left: 24px;
    background: var(--primary-color);
    color: var(--light-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 8px var(--shadow);
    font-family: serif;
}

.tracklist-row {
    display: flex;
    gap: 16px;
    align-items: end;
}

.remove-track-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

.remove-track-btn:hover {
    background: #e74c3c;
    transform: scale(1.1);
}

/* Radio Group Styles */
.radio-group {
    margin: 20px 0;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border: 2px solid var(--surface-light);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 107, 0.05);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--surface-light);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-color);
}

.radio-option input[type="radio"]:checked + .radio-custom:after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-content strong {
    display: block;
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 4px;
}

.radio-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* Schedule Options */
.schedule-options {
    background: var(--surface-light);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--border);
    margin-top: 16px;
    box-shadow: 0 2px 8px var(--shadow);
}

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

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Crimson Text', serif;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px var(--shadow);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--glow), inset 0 2px 4px var(--shadow);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Audio Recording Enhancement Styles */
.waveform.recording .wave-bar {
    animation: waveAnimation 0.6s ease-in-out infinite alternate;
    opacity: 1;
}

.waveform.active .wave-bar {
    animation: waveAnimation 0.8s ease-in-out infinite alternate;
    opacity: 0.8;
}

@keyframes waveAnimation {
    0% { 
        height: 8px; 
        background: var(--primary-color); 
    }
    50% { 
        height: 24px; 
        background: var(--secondary-color); 
    }
    100% { 
        height: 40px; 
        background: var(--accent-color); 
    }
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }

/* Audio Controls Enhancements */
.record-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--glow);
}

.stop-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.play-btn:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.delete-audio-btn {
    background: #e74c3c !important;
    border-color: #c0392b !important;
    color: white !important;
    margin-top: 10px;
}

.delete-audio-btn:hover {
    background: #c0392b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3) !important;
}

/* Audio File Upload Styling */
.file-upload {
    text-align: center;
    padding: 20px;
}

.file-upload .btn-secondary {
    background: var(--surface-light);
    border: 2px dashed var(--primary-color);
    color: var(--primary-color);
    padding: 16px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.file-upload .btn-secondary:hover {
    background: var(--primary-color);
    color: var(--light-color);
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow);
}

/* Audio Preview Styles */
.audio-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--surface-light);
    border-radius: 12px;
    border: 2px solid var(--border);
    margin-top: 16px;
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.audio-info i {
    color: var(--primary-color);
    font-size: 18px;
}

.audio-name {
    font-weight: 600;
    color: var(--text-primary);
}

.audio-controls {
    display: flex;
    gap: 8px;
}

.audio-controls button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.audio-controls .play-btn {
    background: var(--primary-color);
    color: white;
}

.audio-controls .delete-audio-btn {
    background: #e74c3c;
    color: white;
}

/* Recording Status Indicators */
.recorder-controls .recording-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-style: italic;
}

.time-display.recording {
    color: #e74c3c;
    animation: pulse 1s ease-in-out infinite;
}

/* Mobile Audio Styles */
@media (max-width: 768px) {
    .voice-recorder {
        padding: 20px 15px;
    }
    
    .recorder-controls {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .record-btn, .stop-btn, .play-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .waveform {
        gap: 2px;
        height: 30px;
    }
    
    .wave-bar {
        width: 3px;
    }
    
    .delete-audio-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .audio-preview {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .time-display {
        font-size: 20px;
    }
    
    .waveform {
        height: 25px;
        gap: 1px;
    }
    
    .wave-bar {
        width: 2px;
    }
    
    .recorder-controls button {
        font-size: 14px;
        padding: 10px 16px;
    }
}

/* Hidden utility */
.hidden {
    display: none !important;
}