body {
    opacity: 0;
}


#how-it-works {
    padding: 120px 20px;
}

#how-it-works .section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#how-it-works .section-header h5 {
    font-family: Archivo;
    font-weight: 500;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.16px;
    text-align: center;
    text-transform: uppercase;
    color: #D4AF37;
    margin: 0;
}

#how-it-works .section-header h2 {
    font-family: Archivo;
    font-weight: 800;
    font-size: 56px;
    line-height: 120%;
    letter-spacing: -0.16px;
    text-align: center;
    text-transform: uppercase;
    color: #FFFFFF;
    max-width: 832px;
    width: 100%;
    margin: 0;
    margin-top: 24px;
}

#how-it-works .section-header p {
    font-family: Archivo;
    font-weight: 400;
    font-size: 18px;
    line-height: 155%;
    letter-spacing: -0.16px;
    text-align: center;
    max-width: 832px;
    width: 100%;
    margin: 0;
    margin-top: 18px;
    color: #FFFFFFBF;
}

#how-it-works .how-it-works-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 26px;
    margin-top: 48px;
    position: relative;
    padding-bottom: 40px;
    --progress: 0%;
}

#how-it-works .how-it-works-steps::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 3px;
    background: #FFFFFF1F;
}

#how-it-works .how-it-works-steps::before {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: var(--progress);
    height: 3px;
    background: #FFCB00;
    transition: width .1s linear;
}

#how-it-works .how-it-works-steps .step svg {
    max-width: 48px;
    width: 100%;
}

#how-it-works .how-it-works-steps .step h4 {
    font-family: Archivo;
    font-weight: 500;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.16px;
    text-transform: uppercase;
    color: #D4AF37;
    margin: 0;
    margin-top: 24px;
}

#how-it-works .how-it-works-steps .step h3 {
    font-family: Archivo;
    font-weight: 800;
    font-size: 32px;
    line-height: 120%;
    letter-spacing: -0.16px;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0;
    margin-top: 24px;
}

#how-it-works .how-it-works-steps .step p {
    font-family: Archivo;
    font-weight: 400;
    font-size: 18px;
    line-height: 155%;
    letter-spacing: -0.16px;
    color: #FFFFFFBF;
    margin: 0;
    margin-top: 8px;
}

#how-it-works .how-it-works-steps .step {
    opacity: .5;
}

#how-it-works .how-it-works-steps .step.active {
    opacity: 1;
}

/* ===================================
   Destop
=================================== */
@media (max-width: 1366px) {

    #how-it-works {
        padding: 80px 20px;
    }

    #how-it-works .section-header h2 {
        font-size: 42px;
        max-width: 632px;
        margin-top: 18px;
    }

    #how-it-works .section-header p {
        font-size: 17px;
        max-width: 700px;
    }

    #how-it-works .how-it-works-steps {
        gap: 20px;
    }

    #how-it-works .how-it-works-steps .step h3 {
        font-size: 26px;
    }

    #how-it-works .how-it-works-steps .step p {
        font-size: 16px;
    }
}

/* ===================================
   Tablet
=================================== */
@media (max-width: 1060px) {

    #how-it-works {
        padding: 80px 20px;
    }

    #how-it-works .section-header h2 {
        font-size: 34px;
        max-width: 500px;
    }

    #how-it-works .section-header p {
        font-size: 16px;
        max-width: 600px;
    }

    #how-it-works .how-it-works-steps {
        gap: 20px;
    }

    #how-it-works .how-it-works-steps .step h4 {
        font-size: 14px;
    }

    #how-it-works .how-it-works-steps .step h3 {
        font-size: 24px;
    }

    #how-it-works .how-it-works-steps .step p {
        font-size: 14px;
    }
}


/* ===================================
   Mobile
=================================== */
@media (max-width: 767px) {

    #how-it-works {
        padding: 60px 20px;
    }

    #how-it-works .section-header h5 {
        font-size: 14px;
    }

    #how-it-works .section-header h2 {
        font-size: 32px;
        margin-top: 16px;
    }

    #how-it-works .section-header p {
        font-size: 16px;
        margin-top: 16px;
    }

    #how-it-works .how-it-works-steps {
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 32px;
        margin-top: 40px;
        padding-bottom: 0;
    }

    /* Hide progress line on mobile */
    #how-it-works .how-it-works-steps::before,
    #how-it-works .how-it-works-steps::after {
        display: none;
    }

    #how-it-works .how-it-works-steps .step {
        width: 46%;
        opacity: 1;
        text-align: center;
    }

    #how-it-works .how-it-works-steps .step svg {
        width: 42px;
        margin: 0 auto;
        display: block;
    }

    #how-it-works .how-it-works-steps .step h4 {
        font-size: 14px;
        margin-top: 18px;
    }

    #how-it-works .how-it-works-steps .step h3 {
        font-size: 24px;
        margin-top: 12px;
    }

    #how-it-works .how-it-works-steps .step p {
        font-size: 15px;
        margin-top: 8px;
    }

}


/* ===================================
   Small Mobile
=================================== */
@media (max-width: 600px) {

    #how-it-works {
        padding: 50px 16px;
    }

    #how-it-works .section-header h2 {
        font-size: 22px;
        max-width: 300px;
    }

    #how-it-works .section-header p {
        font-size: 14px;
        max-width: 400px;
    }

    #how-it-works .how-it-works-steps {
        gap: 28px;
        flex-direction: column;
    }

    #how-it-works .how-it-works-steps .step {
        max-width: 400px;
        width: 100%;
    }

    #how-it-works .how-it-works-steps .step h3 {
        font-size: 22px;
    }

    #how-it-works .how-it-works-steps .step p {
        font-size: 14px;
    }

}


/* ========================================================================================================= */
/* ========================================================================================================= */
/* ========================================================================================================= */
.beat-upload-form {
    max-width: 100% !important;
    margin: 0 auto !important;
    font-family: Archivo, sans-serif !important;
    box-sizing: border-box !important;
}

.beat-card {
    background: #f7f8fa !important;
    padding: 40px !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 24px !important;
    box-sizing: border-box !important;
}

.form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
}

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

.form-group label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    color: #1a1a1a !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.beat-upload-form .form-group input,
.beat-upload-form .form-group select,
.beat-upload-form .form-group textarea {
    width: 100% !important;
    height: 48px !important;
    padding: 0 16px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    font-size: 15px !important;
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    outline: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.beat-upload-form .form-group select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px !important;
    padding-right: 40px !important;
    cursor: pointer !important;
}

.beat-upload-form .form-group input:hover,
.beat-upload-form .form-group select:hover,
.beat-upload-form .form-group textarea:hover {
    border-color: #cbd5e1 !important;
}

.beat-upload-form .form-group input::placeholder,
.beat-upload-form .form-group textarea::placeholder {
    color: #a0aec0 !important;
}

.beat-upload-form .form-group select option {
    background: #ffffff !important;
    color: #1a1a1a !important;
}

.beat-upload-form .form-group textarea {
    height: 100px !important;
    padding: 14px 16px !important;
    resize: none !important;
}

.beat-upload-form .form-group input:focus,
.beat-upload-form .form-group select:focus,
.beat-upload-form .form-group textarea:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15) !important;
}

.upload-heading-label {
    display: block !important;
    margin-top: 12px !important;
    margin-bottom: 16px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #1a1a1a !important;
}

.upload-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
    margin-bottom: 8px !important;
}

.upload-box {
    border: 1.5px dashed #e2c062 !important;
    border-radius: 12px !important;
    padding: 32px 24px !important;
    text-align: center !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
    background: #ffffff !important;
    cursor: pointer !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.upload-box-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    pointer-events: none !important;
}

.upload-box:hover {
    border-color: #d4af37 !important;
    background: #fffdf5 !important;
}

.upload-box.has-file {
    border-style: solid !important;
    border-color: #cca32c !important;
    background: rgba(212, 175, 55, 0.03) !important;
}

.upload-icon-container {
    width: 44px !important;
    height: 44px !important;
    background-color: #fef8e7 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 16px !important;
}

.upload-icon-container svg {
    color: #d4af37 !important;
}

.upload-box h4 {
    margin: 0 0 6px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

.upload-box p {
    color: #718096 !important;
    margin: 0 0 16px 0 !important;
    font-size: 13px !important;
}

.choose-file-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #e9ecef !important;
    color: #1a1a1a !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    border: none !important;
    transition: background-color 0.2s ease !important;
    pointer-events: none !important;
}

.upload-box:hover .choose-file-btn {
    background-color: #dee2e6 !important;
}

.upload-box input[type="file"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.beat-submit {
    background: #d4af37 !important;
    color: #1a1a1a !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}

.beat-submit:hover {
    background: #cca32c !important;
}

.beat-submit:active {
    transform: scale(0.98) !important;
}

.beat-submit .submit-icon {
    flex-shrink: 0 !important;
}

#beat-message {
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    font-weight: 600 !important;
    color: #cca32c !important;
}

.file-name {
    display: block !important;
    color: #1a1a1a !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-top: 12px !important;
    word-break: break-all !important;
    position: relative !important;
    z-index: 3 !important;
    pointer-events: none !important;
    background: #fdf8e7 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    border: 1px solid #ebd490 !important;
}

@media(max-width: 768px) {
    .form-row,
    .upload-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .beat-card {
        padding: 24px !important;
    }
    .beat-submit {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media(max-width: 480px) {
    .beat-card {
        padding: 16px 12px !important;
    }
    .upload-box {
        padding: 24px 16px !important;
    }
    .beat-upload-form .form-group input,
    .beat-upload-form .form-group select,
    .beat-upload-form .form-group textarea {
        height: 44px !important;
        padding: 0 12px !important;
        font-size: 14px !important;
    }
    .beat-upload-form .form-group textarea {
        height: 90px !important;
        padding: 10px 12px !important;
    }
    .form-group label {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }
    .upload-heading-label {
        font-size: 15px !important;
        margin-top: 8px !important;
        margin-bottom: 12px !important;
    }
}

/* ===========================================
   Error States
   =========================================== */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea,
.upload-box.has-error {
    border-color: #ff4444 !important;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, .12) !important;
}

.form-group.has-error label {
    color: #ff4444;
}

.field-error {
    display: block;
    color: #ff4444;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    padding-left: 2px;
}

.upload-box.has-error .field-error {
    margin-top: 15px;
    z-index: 3;
    position: relative;
}

.beat-success {
    background: rgba(74, 222, 128, .1);
    color: #2f855a;
    border: 1px solid rgba(74, 222, 128, .3);
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    margin-top: 16px;
}

.beat-error {
    background: rgba(255, 68, 68, .1);
    color: #c53030;
    border: 1px solid rgba(255, 68, 68, .3);
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    margin-top: 16px;
}

.beat-loading {
    color: #cca32c;
    text-align: center;
    padding: 14px 20px;
    font-weight: 600;
    animation: beat-pulse 1s ease-in-out infinite;
    margin-top: 16px;
}

@keyframes beat-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

/* ---------- Beat Library Delete Button ---------- */
.beat-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background .2s;
}

.beat-delete-btn:hover {
    background: #fef2f2;
}

.beat-delete-btn svg {
    stroke: #6b7280;
    transition: stroke .2s;
}

.beat-delete-btn:hover svg {
    stroke: #ef4444;
}