/* ═══════════════════════════════════════════════════════════════════
   Music Submission — Elementor Widget Styles
   Prefix: mue-  (music-uploader-elementor)
   ═══════════════════════════════════════════════════════════════════ */

.mue-container {
    max-width: 740px;
    margin: 0 auto;
    padding: 32px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1e293b;
    line-height: 1.6;
    background: #fff;
    border-radius: 16px;
}

/* ── Progress Steps ─────────────────────────────────────────────── */

.mue-progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}

.mue-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.mue-step-connector {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 4px;
    margin-bottom: 22px;
    transition: background 0.4s;
}

.mue-step.completed ~ .mue-step-connector,
.mue-step.completed + .mue-step-connector {
    background: #667eea;
}

.mue-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
}

.mue-step.active .mue-step-number,
.mue-step.completed .mue-step-number {
    background: #667eea;
    color: #fff;
    box-shadow: 0 4px 14px rgba(102,126,234,0.35);
}

.mue-step.completed .mue-step-number::after {
    content: '\2713';
    font-size: 17px;
}

.mue-step.completed .mue-step-number {
    font-size: 0;
}

.mue-step-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    transition: color 0.3s;
}

.mue-step.active .mue-step-label {
    color: #667eea;
    font-weight: 600;
}

.mue-step.completed .mue-step-label {
    color: #667eea;
}

/* ── Step Content Panels ────────────────────────────────────────── */

.mue-step-content {
    display: none;
}

.mue-step-content.active {
    display: block;
    animation: mue-fadeUp 0.35s ease;
}

@keyframes mue-fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mue-step-content h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
}

.mue-step-content h3 {
    margin: 28px 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.mue-subtitle {
    color: #64748b;
    margin: 0 0 28px;
    font-size: 15px;
}

/* ── Upload Area ────────────────────────────────────────────────── */

.mue-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 48px 28px;
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mue-upload-area:hover,
.mue-upload-area.dragover {
    border-color: #667eea;
    background: #eef2ff;
}

.mue-upload-icon {
    color: #667eea;
    margin-bottom: 12px;
}

.mue-upload-cta {
    font-size: 16px;
    font-weight: 500;
    color: #334155;
    margin: 0 0 4px;
}

.mue-upload-or {
    color: #94a3b8;
    margin: 12px 0;
    font-size: 13px;
}

.mue-file-info {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 14px;
}

/* ── Buttons ────────────────────────────────────────────────────── */

.mue-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    text-decoration: none;
    line-height: 1.4;
    gap: 6px;
}

.mue-btn-primary {
    background: #667eea;
    color: #fff;
}

.mue-btn-primary:hover {
    background: #764ba2;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.35);
}

.mue-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mue-btn-secondary {
    background: #f1f5f9;
    color: #334155;
}

.mue-btn-secondary:hover {
    background: #e2e8f0;
}

.mue-btn-large {
    padding: 14px 40px;
    font-size: 15px;
}

.mue-btn-small {
    padding: 6px 14px;
    font-size: 12px;
    margin-top: 8px;
}

/* ── Upload / Transcription Progress ────────────────────────────── */

.mue-upload-progress {
    margin-top: 28px;
    padding: 20px 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.mue-progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.mue-progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 100px;
    overflow: hidden;
}

.mue-progress-fill {
    height: 100%;
    background: #667eea;
    width: 0%;
    border-radius: 100px;
    transition: width 0.3s ease;
}

.mue-upload-status {
    font-size: 13px;
    color: #64748b;
    margin-top: 10px;
}

.mue-transcription-progress {
    text-align: center;
    padding: 44px 20px;
}

.mue-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: mue-spin 0.8s linear infinite;
    margin: 0 auto 18px;
}

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

.mue-note {
    font-size: 13px;
    color: #94a3b8;
}

/* ── Lyrics / Explicit ──────────────────────────────────────────── */

.mue-lyrics-box {
    background: #f1f5f9;
    padding: 18px;
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
    border: 1px solid #e2e8f0;
}

.mue-lyrics-box .explicit-word {
    background: #fee2e2;
    color: #b91c1c;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 600;
}

.mue-explicit-warning {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.mue-warning-badge {
    flex-shrink: 0;
    color: #ea580c;
    margin-top: 2px;
}

.mue-explicit-warning strong {
    display: block;
    color: #9a3412;
    margin-bottom: 4px;
}

.mue-explicit-warning p {
    margin: 0;
    font-size: 13px;
    color: #78350f;
    line-height: 1.5;
}

.mue-transcription-failed {
    padding: 14px 18px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    color: #991b1b;
}

/* ── Form ───────────────────────────────────────────────────────── */

.mue-form-group {
    margin-bottom: 20px;
}

.mue-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #334155;
    font-size: 14px;
}

.mue-req { color: #dc2626; }
.mue-optional { color: #94a3b8; font-weight: 400; font-size: 13px; }

.mue-form-group input[type="text"],
.mue-form-group input[type="email"],
.mue-form-group input[type="tel"],
.mue-form-group select,
.mue-form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.mue-form-group input:focus,
.mue-form-group select:focus,
.mue-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
}

.mue-form-group input.mue-invalid,
.mue-form-group select.mue-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.mue-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.mue-field-note {
    font-size: 12px;
    color: #94a3b8;
    margin: 4px 0 6px;
}

/* Radio / Checkbox */
.mue-radio-group {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.mue-radio,
.mue-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.mue-radio input,
.mue-checkbox input {
    margin-top: 3px;
    accent-color: #667eea;
    width: 16px;
    height: 16px;
}

/* Form actions */
.mue-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* ── Artwork Upload ─────────────────────────────────────────────── */

.mue-artwork-upload {
    width: 180px;
    height: 180px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}

.mue-artwork-upload:hover {
    border-color: #667eea;
    background: #eef2ff;
}

.mue-artwork-upload.has-artwork {
    border-style: solid;
    border-color: #667eea;
}

.mue-artwork-upload.mue-invalid {
    border-color: #dc2626;
}

.mue-artwork-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 14px;
    color: #94a3b8;
}

.mue-artwork-placeholder p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748b;
}

.mue-artwork-preview {
    width: 100%;
    height: 100%;
    position: relative;
}

.mue-artwork-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.mue-artwork-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
}

.mue-artwork-remove:hover {
    background: #dc2626;
}

/* ── Review Card ────────────────────────────────────────────────── */

.mue-review-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
}

.mue-review-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: #667eea;
    color: #fff;
}

.mue-review-artwork {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.3);
}

.mue-review-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mue-review-icon {
    flex-shrink: 0;
    opacity: 0.9;
}

.mue-review-title h3 {
    margin: 0;
    font-size: 20px;
    color: #fff;
}

.mue-review-title p {
    margin: 4px 0 0;
    opacity: 0.85;
    font-size: 14px;
}

.mue-review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 18px 20px;
}

.mue-review-item {
    display: flex;
    flex-direction: column;
}

.mue-review-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 2px;
}

.mue-review-item > span:last-child {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.mue-review-audio {
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.mue-review-audio audio {
    width: 100%;
    border-radius: 8px;
}

.mue-explicit-review-warning {
    background: #fff7ed;
    padding: 14px 18px;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #9a3412;
}

.mue-explicit-review-warning p { margin: 0; }

/* ── Rights & Ownership ─────────────────────────────────────────── */

.mue-rights-section {
    padding: 18px;
    margin-bottom: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.mue-rights-section h4 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #1e293b;
}

.mue-rights-section .mue-radio-group {
    margin-bottom: 8px;
}

/* Belt and braces: some themes force a display on inputs, which would beat
   the browser's default [hidden] rule and reveal the follow-up name field. */
.mue-rights-section input[type="text"][hidden] {
    display: none;
}

.mue-rights-notice {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    border-radius: 10px;
    align-items: flex-start;
}

.mue-rights-notice[hidden] {
    display: none;
}

.mue-rights-notice-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.mue-rights-notice-content p {
    margin: 0;
    font-size: 13px;
    color: #1e3a8a;
    line-height: 1.6;
}

.mue-rights-notice-content ul {
    margin: 8px 0 0 18px;
    padding: 0;
    font-size: 13px;
    color: #1e3a8a;
    line-height: 1.6;
}

.mue-rights-notice-content li {
    margin-bottom: 4px;
}

/* ── Agreement & Signature ──────────────────────────────────────── */

.mue-agreement-section {
    margin-bottom: 24px;
}

.mue-agreement-section h3 {
    margin: 0 0 4px;
}

.mue-agreement-text {
    max-height: 280px;
    overflow-y: auto;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 14px;
    color: #334155;
}

.mue-agreement-text p { margin: 0 0 10px; }
.mue-agreement-text ul { margin: 0 0 10px 18px; padding: 0; }
.mue-agreement-text li { margin-bottom: 4px; }

/* The agreement acknowledgement.
 *
 * This is the most consequential control on the form -- it is where the artist
 * says they have read the licence. It was an unstyled browser checkbox with a
 * misaligned label, which made the single decision that matters look like an
 * afterthought. */
.mue-agreement-acknowledge {
    margin: 16px 0;
    padding: 0;
    border-bottom: none;
}

.mue-agreement-acknowledge label,
.mue-agreement-acknowledge .mue-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.mue-agreement-acknowledge label:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.mue-agreement-acknowledge input[type="checkbox"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    /* Nudge to sit on the first line's cap height rather than its box top. */
    margin-top: 1px;
    accent-color: #667eea;
    cursor: pointer;
}

.mue-agreement-acknowledge span {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

/* Once ticked, show it has been done. */
.mue-agreement-acknowledge label:has(input:checked) {
    background: #f0fdf4;
    border-color: #86efac;
}

.mue-signature-section {
    padding: 18px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.mue-signature-pad-wrapper {
    position: relative;
}

.mue-signature-pad-wrapper canvas {
    width: 100%;
    max-width: 500px;
    height: 160px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    cursor: crosshair;
    touch-action: none;
    display: block;
    transition: border-color 0.2s;
}

.mue-signature-pad-wrapper canvas.has-signature {
    border-color: #16a34a;
}

/* ── Success ────────────────────────────────────────────────────── */

.mue-success {
    text-align: center;
    padding: 36px 16px;
}

.mue-success-icon {
    margin-bottom: 18px;
}

.mue-success h2 {
    color: #16a34a;
}

.mue-success-info {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 22px 24px;
    border-radius: 12px;
    margin: 26px auto;
    text-align: left;
    max-width: 480px;
}

.mue-success-info h3 {
    margin: 0 0 14px;
    font-size: 16px;
}

.mue-success-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mue-success-info li {
    padding: 10px 0;
    border-bottom: 1px solid #dcfce7;
    font-size: 14px;
    color: #1e293b;
}

.mue-success-info li:last-child { border-bottom: none; }

.mue-explicit-info {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: left;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
    color: #9a3412;
}

.mue-explicit-info p { margin: 0; }

/* ── Responsive ─────────────────────────────────────────────────── */

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

    .mue-progress-steps {
        margin-bottom: 28px;
    }

    .mue-step-label {
        display: none;
    }

    .mue-step-number {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .mue-form-row {
        grid-template-columns: 1fr;
    }

    .mue-review-grid {
        grid-template-columns: 1fr;
    }

    .mue-upload-area {
        padding: 32px 16px;
    }
}
