.owf-voice-recorder {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, #0D1B2A 0%, #1B263B 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    color: #E0E1DD;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.owf-vr-header {
    text-align: center;
    margin-bottom: 2rem;
}

.owf-vr-header h3 {
    color: #00D9FF;
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.owf-vr-header p {
    color: #778DA9;
    margin: 0;
    font-size: 0.95rem;
}

.owf-vr-instructions {
    background: rgba(13, 27, 42, 0.6);
    border-left: 4px solid rgba(100, 150, 200, 0.5);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.owf-vr-instructions ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #B8C5D6;
    font-size: 0.95rem;
    line-height: 1.6;
}

.owf-vr-instructions li {
    margin: 0.4rem 0;
}

.owf-vr-instructions em {
    color: #778DA9;
    font-style: italic;
}

.owf-vr-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.owf-vr-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.owf-vr-field label {
    color: #E0E1DD;
    font-weight: 600;
    font-size: 0.9rem;
}

.owf-vr-field input {
    padding: 0.75rem;
    border: 2px solid #415A77;
    border-radius: 8px;
    background: #1B263B;
    color: #E0E1DD;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.owf-vr-field input:focus {
    outline: none;
    border-color: #00D9FF;
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.owf-vr-field input::placeholder {
    color: #778DA9;
}

.owf-vr-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.owf-vr-btn {
    padding: 1.1rem 2rem !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.owf-vr-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.owf-vr-btn-primary {
    background: linear-gradient(135deg, #00D9FF 0%, #0099CC 100%);
    color: #0D1B2A;
}

.owf-vr-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.4);
}

.owf-vr-btn-danger {
    background: linear-gradient(135deg, #FF4444 0%, #CC0000 100%);
    color: white;
}

.owf-vr-btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
}

.owf-vr-btn-secondary {
    background: #415A77;
    color: #E0E1DD;
}

.owf-vr-btn-secondary:hover:not(:disabled) {
    background: #4F6D8F;
    transform: translateY(-2px);
}

.owf-vr-btn-success {
    background: linear-gradient(135deg, #00FF88 0%, #00CC66 100%);
    color: #0D1B2A;
}

.owf-vr-btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4);
}

.owf-vr-status {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}

.owf-vr-recording {
    background: rgba(255, 68, 68, 0.2);
    border: 2px solid #FF4444;
    color: #FF4444;
    animation: pulse 1.5s ease-in-out infinite;
}

.owf-vr-processing {
    background: rgba(100, 150, 200, 0.2);
    border: 2px solid #6495ED;
    color: #6495ED;
}

.owf-vr-complete {
    background: rgba(0, 255, 136, 0.2);
    border: 2px solid #00FF88;
    color: #00FF88;
}

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

.owf-vr-countdown {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #6495ED;
    min-height: 1.5rem;
}

.owf-waveform {
    padding: 1rem;
    background: rgba(13, 27, 42, 0.8);
    border-radius: 8px;
    border: 2px solid rgba(100, 150, 200, 0.5);
    margin-top: 1rem;
    box-shadow: 0 0 20px rgba(100, 150, 200, 0.2);
}

.owf-waveform canvas {
    width: 100%;
    height: 80px;
    display: block;
}

.owf-vr-playback {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(65, 90, 119, 0.3);
    border-radius: 8px;
    border: 2px solid #415A77;
}

.owf-vr-playback h4 {
    margin: 0 0 0.5rem 0;
    color: #6495ED;
    font-size: 1.1rem;
}

.owf-vr-playback audio {
    width: 100%;
    border-radius: 8px;
}

.owf-vr-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.owf-vr-message {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1rem;
}

.owf-vr-message-error {
    background: rgba(255, 68, 68, 0.2);
    border: 2px solid #FF4444;
    color: #FF4444;
}

.owf-vr-message-success {
    background: rgba(0, 255, 136, 0.2);
    border: 2px solid #00FF88;
    color: #00FF88;
}

.owf-vr-message-info {
    background: rgba(0, 217, 255, 0.2);
    border: 2px solid #00D9FF;
    color: #00D9FF;
}

/* ── Section header ── */
.owf-voice-section-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(13, 27, 42, 0.6);
    border: 1px solid rgba(100, 150, 200, 0.3);
    border-radius: 8px;
}
.owf-voice-section-header h2 {
    color: #6495ED;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}
.owf-voice-section-header p {
    margin: 0;
    color: #B8C5D6;
    font-size: 1rem;
    line-height: 1.6;
}

/* ── Form fields ── */
.owf-vr-form-fields {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.owf-vr-field-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.owf-vr-field-row .owf-vr-field {
    flex: 1;
}

.owf-vr-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.owf-vr-field label {
    color: #B8C5D6;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.owf-optional {
    color: #778DA9;
    font-weight: 400;
    font-size: 0.8rem;
}

.owf-required {
    color: #FF4444;
    font-weight: 700;
}

.owf-vr-field input[type="text"],
.owf-vr-field input[type="email"] {
    padding: 0.65rem 0.85rem;
    border: 1px solid #415A77;
    border-radius: 6px;
    background: rgba(13, 27, 42, 0.7);
    color: #E0E1DD;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.owf-vr-field input[type="text"]:focus,
.owf-vr-field input[type="email"]:focus {
    outline: none;
    border-color: #6495ED;
    box-shadow: 0 0 0 2px rgba(100, 149, 237, 0.15);
}

.owf-vr-field input::placeholder {
    color: #415A77;
}

/* ── Song toggle ── */
.owf-song-toggle-wrap {
    margin-top: 0.25rem;
}

.owf-song-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.owf-song-toggle-top {
    display: flex;
    gap: 0.6rem;
    flex-wrap: nowrap;
}

.owf-song-toggle-bottom {
    display: flex;
}

.owf-toggle-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    background: rgba(13, 27, 42, 0.6);
    border: 1px solid #415A77;
    border-radius: 20px;
    cursor: pointer;
    color: #B8C5D6;
    font-size: 1rem;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.owf-toggle-option:hover {
    border-color: #6495ED;
    background: rgba(100, 149, 237, 0.08);
}

.owf-toggle-option input[type="radio"] {
    width: auto;
    margin: 0;
    accent-color: #6495ED;
    cursor: pointer;
}

#owf-song-fields {
    padding: 1rem;
    background: rgba(65, 90, 119, 0.15);
    border: 1px solid rgba(100, 149, 237, 0.2);
    border-radius: 8px;
    animation: owf-fade-in 0.2s ease;
}

@keyframes owf-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Email copy option ── */
.owf-vr-email-option {
    margin: 1rem 0;
    padding: 1rem 1.25rem;
    background: rgba(65, 90, 119, 0.2);
    border: 1px solid rgba(100, 149, 237, 0.2);
    border-radius: 8px;
}

.owf-email-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: #B8C5D6;
    font-size: 1rem;
    font-weight: 600;
}

.owf-email-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #6495ED;
    flex-shrink: 0;
}

/* ── Responsive design ── */
@media (max-width: 640px) {
    .owf-voice-recorder {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .owf-vr-header h3 {
        font-size: 1.5rem;
    }
    
    .owf-vr-controls {
        flex-direction: column;
    }
    
    .owf-vr-btn {
        width: 100%;
        justify-content: center;
    }
    
    .owf-vr-actions {
        flex-direction: column;
    }

    .owf-song-toggle-top {
        flex-wrap: wrap;
    }
}
